javascript - Is there a way to open TinyMCE popup dialog from a button? -


i'd have tinymce open popup dialog , load specified content editing.

i have text inside div , upon clicking button, i'd have tinymce open editing text.

i believe you'd need fancybox modal popup window. rest rather simple:

script (in page1.htm)

<script> $(document).ready(function() {     $(".element").fancybox({         fittoview   : false,         width       : '500px',         height      : '500px',         autosize    : false,         closeclick  : false,         openeffect  : 'none',         closeeffect : 'none',      }); }); </script> 

then you'd need whole load tinymce code , textarea code (as in tinymce demos on site , in dowloads) loaded in external page (page2.htm), , you'd need call page2.htm iframe in fancybox, not sure if proper way it, works in chrome , firefox:

<a class="element" data-fancybox-type="iframe" href="page2.htm"><input type="button" value="your value text"></a> 

something along lines should you're wanting done.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -