tinymce-4

tinyMCE 4 instance after mceAddEditor really tall

喜你入骨 提交于 2020-01-04 09:12:54
问题 Pre-note: This issue occurs whether or not I already have a textarea on the page. I have a button that triggers an ajax request first...writing something to a database and returning the key. I use that key in my ID for the textarea that is then dynamically added to page. Keep in mind that tinyMCE is already initialized. tinymce.init({ selector: ".editor", setup: function(ed) { ed.on('change', function(e) { tinymce.triggerSave(); $('form').trigger('checkform.areYouSure'); }); ed.on('init',

tinyMCE 4 instance after mceAddEditor really tall

空扰寡人 提交于 2020-01-04 09:11:57
问题 Pre-note: This issue occurs whether or not I already have a textarea on the page. I have a button that triggers an ajax request first...writing something to a database and returning the key. I use that key in my ID for the textarea that is then dynamically added to page. Keep in mind that tinyMCE is already initialized. tinymce.init({ selector: ".editor", setup: function(ed) { ed.on('change', function(e) { tinymce.triggerSave(); $('form').trigger('checkform.areYouSure'); }); ed.on('init',

ngModel.$render is not called when model change

梦想与她 提交于 2020-01-02 08:04:08
问题 I'm trying to use tiny-mce with angular, but i have some trouble with the $render function in the directive. When i update the model, the $render function is not call. Here a plunkr to illustrate: http://plnkr.co/edit/Ih1nDq?p=preview I'm not sure, but i think it could be related to angular 1.2, because with angular 1.1.5, it works : http://plnkr.co/edit/LXAtHd?p=preview Is this a bug of angular 1.2, or did i miss something new with angular 1.2? 回答1: As far as I can see, the $render function

TinyMCE 4 can't type in provided plugin text fields

痞子三分冷 提交于 2020-01-02 03:45:07
问题 Using TinyMCE 4.1.5 under JS (w/ JQuery 1.11.1 and several JQuery plugins like form and ui). The TinyMCE version I'm using is not the one with embedded JQuery. The editor comes up fine and I can type directly in it without issue. Using only the tinymce-provided plugins, all functions that use buttons or non-text field controls work fine. However, the text fields in the plugins (such as in link or insert video) won't let me type into the fields or select other text fields (so it seems like a

Command identifiers for tinymce 4.x (mceAddControl)

ⅰ亾dé卋堺 提交于 2020-01-01 11:55:08
问题 I am migrating from tinyMCE 3.x to the latest version of tinyMCE 4.x. My problem is that I have dynamic generation of tinyMCE instances so in 3.x I was using: tinymce.EditorManager.execCommand('mceAddControl', true, "content_txt"); but in version 4.x this doesn't work. I started to check the documentation but I can't find the identifiers for version 4.x 回答1: Migration is very simple, replace tinymce.EditorManager.execCommand('mceAddControl', true, "content_txt"); by tinymce.EditorManager

tinymce v4 jquery: how to catch onkeyup?

孤人 提交于 2020-01-01 09:15:10
问题 I'm trying to enable submit button when some form fields are filled. I've found a piece of javascript code that works, but I've a problem with textarea fiel which is tranformed by tinymce... How to catch it? My html: <form id="form_id1"> <fieldset> <legend>Personal</legend> Name: <input type="text" size="30" /><br /> Email: <input type="text" size="30" /><br /> Date of birth: <input type="text" size="10" /><br /> Address : <textarea size="30"></textarea><br /> </fieldset> <input type="submit"

How to change link color on tinymce once linked added?

為{幸葍}努か 提交于 2019-12-30 14:25:19
问题 I've modify my tinymce to add class to anchot tag and changed the color. below is my code 回答1: The link plugin does not fire any events of its own when you insert a new link. The list of events the editor does fire are documented here: https://www.tinymce.com/docs/advanced/events/#editorevents You can check to see what events get triggered by an action and then add code to act upon that event just as you have for the click event. The other alternative is to modify the code of the link plugin

How to change link color on tinymce once linked added?

妖精的绣舞 提交于 2019-12-30 14:25:12
问题 I've modify my tinymce to add class to anchot tag and changed the color. below is my code 回答1: The link plugin does not fire any events of its own when you insert a new link. The list of events the editor does fire are documented here: https://www.tinymce.com/docs/advanced/events/#editorevents You can check to see what events get triggered by an action and then add code to act upon that event just as you have for the click event. The other alternative is to modify the code of the link plugin

TinyMCE Rupess Symbol Comes as Rectangular Box

时光毁灭记忆、已成空白 提交于 2019-12-25 12:51:25
问题 I have Added a new option in TinyMCE CharMap . but since font was not supporting in client system so how do we import custom font to Rupess symbol appear perfectly . tinymce.PluginManager.add("charmap", function(e) { function t() { return [ ["8377", "Rupess Symbol"], ["160", "no-break space"], ..So on ["8207", "right-to-left mark"] ] } Please any one suggest or provide live fiddle with font supported and display Rupess Symbol . since we can't install font on client systems . Thanks 回答1: Are

How can I manipulate TinyMCE listbox elements?

我们两清 提交于 2019-12-25 07:07:36
问题 In TinyMCE how can add and remove options to listboxes in a plugin pop up window? 回答1: editor.addMenuItem('insertValue', { text: 'Menu item text', context: 'tools', onclick: function() { availableElements=[ { text:'Start typing into the search box' } ]; var w=editor.windowManager.open({ title: 'Pop up window title', body:[ { type:'textbox', name:'title', label:'Search', onkeyup:function(e){ $.post('THE URL WHICH GIVE BACK THE OPTIONS AS A JSON').done(function(response){ response=JSON.parse