tinymce-4

How do I initialize TinyMCE on a ajax loaded textarea in 4.x?

血红的双手。 提交于 2019-11-29 05:55:42
I am upgrading to tinyMCE 4.x and I am attempting to initialize tinyMCE on a textarea loaded via AJAX. In 3.x I did something of the sort: TinyMCE - attach to divs loaded via AJAX calls but this does not seem to work in 4.x. Arquimedes de Siracusa tinymce.remove(); tinymce.init(); This works well! In TinyMCE 4.x mceRemoveControl and mceAddControl have been removed. You have to use mceRemoveEditor and mceAddEditor instead. Got it from: [Resolved] mceRemoveControl and mceAddControl in tinymce 4 Otherwise, you can reload tinymce.init({ ... }) but that should not be the way as it would be slower.

How do I initialize TinyMCE on a ajax loaded textarea in 4.x?

冷暖自知 提交于 2019-11-29 05:53:56
I am upgrading to tinyMCE 4.x and I am attempting to initialize tinyMCE on a textarea loaded via AJAX. In 3.x I did something of the sort: TinyMCE - attach to divs loaded via AJAX calls but this does not seem to work in 4.x. Arquimedes de Siracusa tinymce.remove(); tinymce.init(); This works well! In TinyMCE 4.x mceRemoveControl and mceAddControl have been removed. You have to use mceRemoveEditor and mceAddEditor instead. Got it from: [Resolved] mceRemoveControl and mceAddControl in tinymce 4 Otherwise, you can reload tinymce.init({ ... }) but that should not be the way as it would be slower.

TinyMCE API v4 windowManager.open - What widgets can I configure for the body option?

亡梦爱人 提交于 2019-11-28 14:30:44
问题 I would like to fill the body of a modal dialog with custom HTML, generated by Javascript. The documentation for this method is mostly empty. I have only found examples for loading an external file or adding a textbox. Is there a documentation for the available types? More specifically, is there a type to add general markup to the body of a dialog from a Javascript variable? 回答1: After I beautified the minified version of tinymce, i found that these may be some of the body types for

How do i use TinyMCE jQuery package and what is the difference with TinyMCE jQuery plugin

*爱你&永不变心* 提交于 2019-11-28 08:18:46
I've seen this post What is the TinyMCE jQuery Package? which explains what the v4 TinyMCE jQuery package is but the post and the tinymce site only contain examples of v3. When I download the v4 TinyMCE jQuery package there is no tiny_mce.js; there seems to be two files jquery.tinymce.min.js and tinymce.min.js. I've read that if I include both files then I am using full TinyMCE and not the jQuery version, but if I only include the jQuery file, my call to tinyMCE.init fails with "tinyMCE is not defined". I'd really rather be figuring this out from the documentation, but I've tried to search it

TinyMCE 4 links plugin modal in not editable

瘦欲@ 提交于 2019-11-28 05:46:04
I am using tinyMCE4 editor inside a Boostrap modal dialog. when I clicked on link icon it opens a new modal dialog box, It displayed fine but the input areas are not editable. <div id="editing" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <form> <label> <span>Description</span> <div id="description"></div> </label> <form> </div> <script> tinymce.init({ selector: 'div#description', inline: false, theme : "modern", schema: "html5", add_unload_trigger: false, statusbar: false, plugins: "link", toolbar: "link | undo redo", menubar: false })

Add an input element of type=file in tinymce container

梦想的初衷 提交于 2019-11-28 00:32:24
问题 I am trying to extend a tinymce pluggin and need to add an input element of type=file. (I am new to such an exercise so please pardon my ignorance.. Also could not find examples/samples to work with..) It seems you can do the following to show elements to a container that opens in a panel : var generalFormItems = [ {name: 'alt', type: 'textbox', label: 'Image description'}, {name: 'width', type: 'textbox', maxLength: 3, size: 3, onchange: recalcSize}, ]; win = editor.windowManager.open({

How do i use TinyMCE jQuery package and what is the difference with TinyMCE jQuery plugin

…衆ロ難τιáo~ 提交于 2019-11-27 02:13:42
问题 I've seen this post What is the TinyMCE jQuery Package? which explains what the v4 TinyMCE jQuery package is but the post and the tinymce site only contain examples of v3. When I download the v4 TinyMCE jQuery package there is no tiny_mce.js; there seems to be two files jquery.tinymce.min.js and tinymce.min.js. I've read that if I include both files then I am using full TinyMCE and not the jQuery version, but if I only include the jQuery file, my call to tinyMCE.init fails with "tinyMCE is