tinymce

Spellchecker is not working in tinymce 4.0 (Non JSON response)

不问归期 提交于 2019-12-24 01:48:32
问题 I'm trying to use Spellchecker in TinyMCE 4.0, but it returns the error: Non JSON response:<br /> <b>Warning</b>: call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'PSpellShell::spellcheck' was given in <b>/home/www/misitio.com/doc/plugins/tinymce/plugins/spellchecker/rpc.php</b> on line <b>98</b><br /> {"id":null,"result":null,"error":null} The code I use is: //Javascript: tinymce.init({

TinyMCE-dialogs of Plone site are not translated

有些话、适合烂在心里 提交于 2019-12-24 00:12:09
问题 The main issue is a dialog for links: for external links the target dialog is empty. But the issue itself seems to be that this dialog and also other dialogs of TinyMCE and the control panel for TinyMCE is in english, not the language of the website, which is not english. Any hint where to start debugging? Plone 4.3.11 , TinyMCE 1.3.23 default for Plone 4.3.11 german 回答1: Looks like the translation-files aren't compiled and that you ran into https://github.com/plone/Products.TinyMCE/issues

Using the jQuery Validate plugin with the TinyMCE editor

て烟熏妆下的殇ゞ 提交于 2019-12-23 23:08:09
问题 I am implementing client validation using the Validate plugin for jQuery, and coming short with a form field that uses the TinyMCE editor component. This renders an incredibly complex control tree under the containing tag for my form field, including an iframe for the actual editing area, and a textarea element. I cannot access the textarea directly, so I add the 'required' attribute before calling .validate() , like below: jQuery(function() { jQuery("#wpsm_body").addClass("required"); jQuery

TinyMCE fixed_toolbar_container configuration

徘徊边缘 提交于 2019-12-23 19:36:52
问题 I tried using fixed_toolbar_container configuration inside tinymce.init, but it left me with plain html textarea instead of rich text editor. Here's my code: <html> <head> <script src="tinymce\js\tinymce\tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: "textarea", inline: true, fixed_toolbar_container: "#mytoolbar", plugins: [ "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media

getting contents with tinyMCE?

感情迁移 提交于 2019-12-23 18:52:30
问题 I have a tinyMCE textarea #frmbody and am using the jquery instance of it. <textarea class="tinymce" name="frmbody" id="frmbody" cols="30" rows="20"></textarea> I'm trying to get the contents of the textarea as the user types. $("#frmbody").live('keyup', function(e) { alert("keyup"); }); The code above is not working and I'm not sure why. If I remove the tinyMCE instance, the code above works fine. Any ideas? 回答1: That's because an instance of TinyMCE isn't a true textarea, so keyup events

TinyMCE Not Working in Angular-Cli Project

ε祈祈猫儿з 提交于 2019-12-23 17:47:19
问题 I need to implement a text editor in an angular 2 project I'm working on to allow users add posts according to their own customization. After research, I found TinyMCE . I have followed the docs, and setup as described, but the editor doesn't show up. I am using angular-cli . I have looked up at examples on Github , there seems to be nothing wrong with my code, but somehow, the editor won't show up. All I get is a blank textarea box. This is what I have done so far according to the docs. npm

How to replace <b> with <strong> in TinyMCE for Plone

ぐ巨炮叔叔 提交于 2019-12-23 17:11:17
问题 I would like to replace bold tag, , with strong tag, in TinyMCE. How to do it in Plone using Products.TinyMCE? I read TinyMCE document, http://www.tinymce.com/wiki.php/Configuration:valid_elements. Below is how to do it in TinyMCE: tinyMCE.init({ ... valid_elements : "strong/b" }); Thanks. 回答1: I never tested this change, however you can try what you learned patching "tiny_mce_init.js". To do this I suggest to use z3c.jbot (see also http://blog.keul.it/2011/06/z3cjbot-magical-with-your-skins

tinymce not working on firefox

妖精的绣舞 提交于 2019-12-23 16:02:01
问题 I have three textareas using tinymce as text area. They all work in chrome but not on firefox. I am loading the text from mysql using php code. The first textarea loads ok and works, but the other two briefly flashes the contents and then it's gone. I'm not able to insert anything in the box. Here is the script: <!-- Load TinyMCE --> <script type="text/javascript" src="functions/tinymce/jscripts/tiny_mce/jquery.tinymce.js"></script> <script type="text/javascript"> $(document).ready(function()

integrating Fancybox and tinyMCE problem

廉价感情. 提交于 2019-12-23 15:33:53
问题 I have a problem when put tinyMCE in Fancybox popup box Here is the code $(document).ready(function() { $(".reply_button").fancybox({ 'scrolling' : 'no', 'titleShow' : false, 'onClosed' : function() { $.fancybox.close(); $("#login_error").hide(); } ,'onComplete': function(){ $("textarea.editor").tinymce({ script_url: "resources/scripts/tiny_mce", mode: "textareas", theme: "advanced", }); } }); }); The problem is when the box opened then I close it , the grey layer that covered the page stay

Add a tinymce editor dynamically when you already have tinymce instances on your page

六眼飞鱼酱① 提交于 2019-12-23 15:13:33
问题 This is a followup to this question i already asked : Add a tinymce editor dynamically I have a page with editors in it (tinyMCE). I add textarea dynamically (an add entry button). It works fine expect that it undo all change i have done to other TinyMCE. If i loaded a page with a tinyMCE displaying "Something 40" and i typed "Something 40 and some stuff", and then i click to add an entry, a new tinymce appear but the first one now display "Something 40". I use the following code : <script