You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117189 load template via php or javscript

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Wednesday, 30 April 2025 19:18 BST

[email protected]

Hello
I'm developing for our diving club a web site. One of the functions for some users is to fill out a from (I use RSFrom Pro).

One element in the form is an editor field and my standard editor is JCE.

 

Now I want to control via php or javascript (both is possible) which layout the editor should automaticly load. I learned this could be realiszed via editor profils and the layout manager option. But as I have more than 20 different layouts I at least need 20 different profile. This makes not really sense.

Is there a possibility to do this via php code or javascript code?  to load via a parameter or something like that a layout into the editor?

I didn't find a solution so I'm asking you?

 

Thanks in advance for your great support

 

Regards 

Hubert

Ryan

Do all the profiles have to be unique? Which part of each profile must be different for each layout?

Please note that you can only have 1 profile per page load. You cannot have multiple different profiles / editors on the same page.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

[email protected]

As I said, it seems it makes no sense to do it via the profil because I know that one can't hve 100 profil in parallel.

So I'm looking for another solution to load automaticly a layout.

So we have not to discuss about the profiles, this I understand. 

How can I realize to load an layout automaticly? Thats the core of my question. And I want to give the id of that automatic via javascript or php.

 

You understand what I mean?

 

Best Regards

Hubert

Ryan

It is not possible to load an individual editor "layout" on a page. The editor and editor layout is always loaded by an editor profile, based on the profile settings.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

[email protected]

any chance to get an answer????

Ryan

As I said in me previous post, you cannot load an editor without loading a profile. If each editor layout you want to load must be different, then each editor layout would require a unique profile.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.