How to add preset text into the content box using JCE?
-
13-06-2021 - |
Question
Using Joomla! 1.5.26 and JCE 2.1.3, the users can select several options (strings) from a popup and those options should be directly insert text in the JCE textarea where the cursor is.
How can I interact with the JCE content without creating a plugin?
La solution
tinyMCE.execCommand('mceInsertContent', false, '<strong>whatever you want!!!!</strong>');
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow