tinyMCE 4 instance after mceAddEditor really tall -
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 tinnimus instance has been successfully created
Here's the problem:
1) This example is super long. Unless I set a fixed height on the original container, the editor is actually long. The problem of setting a static height on parent container is more than 500px ( autoresize_max_height ); The problem is that autorissance works. Besides, I do not see text from Textreria in this new editor.
2) I can not type in this newly created example.
tinymce.init ({... init_instance_callback: function (editor) {$ (editor.iframeElement) .contents () .Fund ('body'). CSS ( 'Min-height', editor.targetElm.rows * 9);}});
Comments
Post a Comment