Can't type in tinyMCE 4 instance after mceAddEditor -


Pre-Note: This issue occurs if I already have a text on the page or not.

I have a button that first triggers an AJAX request ... writing something for a database and returning the key I use that key in my ID for textarea Which is then dynamically linked to the page. Keep in mind that tinyMCE has already been started.

  tinymce.init ({selector: ".adder", setup: function (ed) {ed.on ('change', function (e) trigger ('checkform.areYouSure'); }; Ed.on ('init', function (e) {autoresize_max_height: 500})}}, plugins: ["Advlist auto link link responsivefilemanager lists printing preview hours anchor pagebreak spell-checker charmap", "searchreplace wordcount visualblocks Visualchars code fullscreen insertdatetime nonbreaking media "," save table contextmenu directionality template paste textcolor colorpicker responsivefilemanager autoresize "], toolbar:" back again | styleselect | bold italic | forecl "Back to the top" Aligncenter alignright | Balllist number list | Outdent indent | table | link responsivefilemanager ", image_advtab: true, external_file, administrator_path:" / filemanager / ", filemanager_chirt:" filemanager ", external_plugin: {" filemanager ":" / Filemanager / plugin.min.js "},}); After Textarea is dynamically created, I have some default 'Lorem Ipsum' text and call mceAddEditor  
  tinymce.execCommand ('mceAddEditor', incorrect, "custom-html_" + data.c2akey );  

data.c2akey is the key returned by AJAX call.

The Tinyime instance has been successfully created

Here's the problem:

1) I can not type this newly created instance

2) The example is super long. Unless I set a fixed height on the original container, the editor is actually long.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -