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:

  1. this works text areas id mytextarea. want work text areas class .tiny_mce (as per tinymce config has mode : "specific_textareas", editor_selector : "tiny_mce").

  2. i don't want load tinymce on host page, when lightbox opened.

  3. how can remove #mywebform addition 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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -