Quantcast

Setting custom tinyMCE configuration in an XBL control

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Setting custom tinyMCE configuration in an XBL control

bwallis42
How can I set the configuration for the tinyMCE editor (where I'm using <xf:textarea mediatype="text/html"> or <fr:tinymce...>) inside a custom control?

I know about TINYMCE_CUSTOM_CONFIG but that is a global setting. I want to change what is configured inside my control without affecting other instances.

Also, are there plans to update tinyMCE to version 4?

thanks
brian...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Setting custom tinyMCE configuration in an XBL control

Alessandro  Vernet
Administrator
Hi Brian,

Right now, you can't have a different config for different instances of that control on the page. For that to be possible, the code in tinymce.js (look for: var tinyMceConfig = …) would need be changed, and find the config from some other place (e.g. object indexed by the control id pointing the a config for that control).

I agree it would be good to upgrade to TinyMCE 4, but we don't have immediate plans to do that upgrade.

https://github.com/orbeon/orbeon-forms/issues/1753

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Loading...