Your plugin JS tweaks TinyMCE?
-
Hi Aram,
My plugin makes use of TinyMCE capabilities to send to the active editor a code for shortcode. For example:
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent() + code);where code is:
[google-map-v3 shortcodeid="2f7aeac0" width="350" height="350" zoom="12" maptype="roadmap" mapalign="center" ...........]It works fine if your plugin disabled or not there, this functionality breaks when your plugin is active. the following error is received:
Uncaught Error: Syntax error, unrecognized expression: [google-map-v3 shortcodeid="2f7aeac0" width="350" height="350" zoom="12" maptype="roadmap" mapalign="center" ........ ]Please advise,
Thank you
The topic ‘Your plugin JS tweaks TinyMCE?’ is closed to new replies.