cleditor

cleditor problem with jquery ui effect()?

。_饼干妹妹 提交于 2019-12-12 02:26:44
问题 I'm using cleditor on one of my sites and I have run into a problem. When I use effect to animate some divs cleditor's wysiwyg editor stops working. The editor itself shows but I cant type anything into it. I can view/edit the source on the editor just fine. Code I use to toggle between divs: function emailwizardplace(pold, pnew) { $("#wizard-" + pold).hide(); $("#wizard-" + pnew).effect('slide'); //$("#wizard-" + pnew).show(); <= This works without problems } Code for calling cleditor: $("

Rich Text Editor and focus by submit button

送分小仙女□ 提交于 2019-12-11 09:14:08
问题 I have a textarea to which I associate a Rich Text Editor . I've followed the steps to install it and everything runs smoothly. The textarea in question is within a form with other textarea and fields to be filled out. Clicking on the classic submit button, I set via js that if the field is empty an alert appears and the system puts the focus on the empty element. This does not work with the textarea combined with the Rich Text Editor, obviously because the latter transforms it into a sort of

Custom binding for cleditor fails after sorting elements through knockout sortable

本秂侑毒 提交于 2019-12-11 06:51:42
问题 First up: check this fiddle. I have sortable array of elements created with the Knockout sortable library. When I initially apply the binding the cleditor initializes fine. However, when sortable elements are sorted, the cleditor fails to re-initialize (I'm not sure what happens but cleditor fails). The cleditor just displays "true" instead of actual value in Firefox, and nothing in all other browsers. I'm trying to figure out where the problem is, whether it is on the custom binding, or

“Error executing the insertHtml command” message in cleditor when inserting html in “View Source” mode

感情迁移 提交于 2019-12-11 04:03:43
问题 I've searched for the solution for this everywhere and have not found an answer, so you're my last hope, Stackoverflow... With regard to cleditor, does anybody know how to make the "inserthtml" command in "View Source" mode work? Currently, I have a method attached to a button's onclick handler that inserts a string into the cleditor's textarea: editor.focus(); setTimeout(function() { editor.execCommand('inserthtml', stringToInsert); }, 0); The above works fine in the normal Rich Text mode

Change the anchor tag in CLEditor

时光毁灭记忆、已成空白 提交于 2019-12-10 15:54:53
问题 Im using CLEditor on my website (CLEditor) and it is working well only I want to be able to set the target of links to _blank but I can't figure it out, even when looking into the source. Is there someone who can help me make the links made by the editor have a target of _blank Thanks 回答1: You could add the attribute to each link: $("#cleeditor iframe").contents().find("a[href]").attr("target", "_blank"); 回答2: $('textarea').cleditor({ updateTextArea: function(html) { var e = $('<div>').append

Cleditor - minor plugin error

女生的网名这么多〃 提交于 2019-12-06 11:37:53
问题 I am not a Javascript specialist so I am a little confused as to why this little button plugin does what it is supposed to in Cleditor but a error warning is popped up by the jquery editor. Here is the code: (function($) { // Define the hello button $.cleditor.buttons.video = { name: "video", image: "video.gif", title: "Insert Video", command: "inserthtml", buttonClick: videoClick }; // Add the button to the default controls before the bold button $.cleditor.defaultOptions.controls = $

jQuery Cleditor wysiwyg text editor: keyup() works in webkit browsers but not Firefox or IE

有些话、适合烂在心里 提交于 2019-12-04 19:33:53
问题 I'm trying to follow up on a previous Stackoverflow question about how to display content from a Cleditor textbox in an external HTML element such as a <p> . Here's the question and the fiddle which solves my problem in webkit browsers but not Firefox or IE: Here's the code from the fiddle: <textarea id="input" name="input"></textarea> <p id="x"></p> <script> $("#input").cleditor(); $(".cleditorMain iframe").contents().find('body').bind('keyup',function(){ var v = $(this).text(); // or .html(

Cleditor - minor plugin error

本秂侑毒 提交于 2019-12-04 16:54:15
I am not a Javascript specialist so I am a little confused as to why this little button plugin does what it is supposed to in Cleditor but a error warning is popped up by the jquery editor. Here is the code: (function($) { // Define the hello button $.cleditor.buttons.video = { name: "video", image: "video.gif", title: "Insert Video", command: "inserthtml", buttonClick: videoClick }; // Add the button to the default controls before the bold button $.cleditor.defaultOptions.controls = $.cleditor.defaultOptions.controls .replace("bold", "video bold"); // Handle the hello button click event

jQuery Cleditor wysiwyg text editor: keyup() works in webkit browsers but not Firefox or IE

我怕爱的太早我们不能终老 提交于 2019-12-03 13:02:55
I'm trying to follow up on a previous Stackoverflow question about how to display content from a Cleditor textbox in an external HTML element such as a <p> . Here's the question and the fiddle which solves my problem in webkit browsers but not Firefox or IE: Here's the code from the fiddle: <textarea id="input" name="input"></textarea> <p id="x"></p> <script> $("#input").cleditor(); $(".cleditorMain iframe").contents().find('body').bind('keyup',function(){ var v = $(this).text(); // or .html() if desired $('#x').html(v); }); </script> I've read Get content of iframe from jquery that I need to

jQuery Cleditor get textarea value on keyup

爷,独闯天下 提交于 2019-12-03 06:18:14
I'm using Cleditor http://premiumsoftware.net/cleditor/docs/GettingStarted.html . I want to get the value on keyup and insert the text into another div. cleditor comes with change() event that i'm currently using in the jsfiddle example below, but thats not the same as keyup. I want the div to be updated as i'm typing in. I tried keyup but it doesn't work. Here's what i have now $("#input").cleditor().change(function(){ var v = $('#input').val(); $('#x').html(v); }) Check jsfiddle http://jsfiddle.net/qm4G6/11/ dgilland It appears that cleditor hides the textarea and replaces it with an iframe