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.

#107853 Call different editor profile

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 sfi on Thursday, 03 June 2021 12:15 BST

sfi
Hello,

We need to load different profiles of editor for the same users, in the same component but in different views, a very complete profile with text and paragraph formatting and tables, and a reduced profile with only formatting. Is it possible to call different editor profiles with $editor->display(... ? How?

Thank you!

sfi
Sorry Ryan,
No way to do this?
Thank you

Ryan
Please try JCE Pro 2.9.8 RC - https://www.joomlacontenteditor.net/downloads/editor/pro/development You can pass thr profile id to the editor using the $param array variable in the $editor->display method, eg:

$editor->display('text', '', 400, 300, 10, 10, true, null, null, null, array('id' => 15));

Ryan Demmer

Lead Developer / CEO / CTO

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

sfi
Thank you very much Ryan, sorry but I can't make it run. There are some screen captures in the attached file.

Regards,

Jose Martinez

Attachments

JCE two profiles.zip

Ryan
It was working in some initial tests, but is not in others. I am still working on this and will update when (and if) I get it to work.

Ryan Demmer

Lead Developer / CEO / CTO

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

sfi
Thank you very much for your effort. It will be a very useful feature for us, and we will use it intensively in our development.