jquery - multiple tinymces in colorbox -
i'm writing inline cms content edited admins hitting 'edit' buttons on front end.
i need web forms containing multiple tinymces open in lightbox , need elegant solution. have web forms working @ own urls (for non js users), , loading these in ajax colorbox lightbox. have far:
jquery(document).ready(function(){ jquery(".ajax").colorbox({ oncomplete : function(){ tinymce.execcommand('mceaddcontrol', true, "mytextarea"); }, onclosed : function(){ tinymce.execcommand('mceremovecontrol', true, "mytextarea");} }); }); ... <a class='ajax' href="/mywebformurl #mywebform">edit</a> i have 3 problems:
this works text areas id
mytextarea. want work text areas class.tiny_mce(as per tinymce config hasmode : "specific_textareas", editor_selector : "tiny_mce").i don't want load tinymce on host page, when lightbox opened.
how can remove
#mywebformaddition href, still load webform, , not entire page @ /mywebformurl?
essentially, i'd ajax loaded content independent, , work when visit mywebform url directly (making it's own js includes etc). considering iframe rather ajax, have worked on assumption iframes should avoided @ costs.
Comments
Post a Comment