nicedit

resize images using NicEdit

丶灬走出姿态 提交于 2019-12-08 10:17:15
问题 I am testing and looking for a wysiwyg editor and I found a pretty functional one called nicEdit. Problem is that using firefox all functions are working properly but using chrome, when image is placed, resize option frame doesn't work! How to solve it? If not, any other similar one? Some functions of Tiny MCE are not working with chrome too. Thank you. 回答1: Use nicEdit and alter code this way in nicEdit.js: var nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne

Limit the number of characters in a WYSIWYG Editor (NicEdit)

吃可爱长大的小学妹 提交于 2019-12-07 03:27:11
问题 I have this jQuery code: var char = 60; $("#counter").append("You have <strong>" + char + "</strong> char."); $("#StatusEntry").keyup(function () { if ($(this).val().length > char) { $(this).val($(this).val().substr(0, char)); } var rest = char - $(this).val().length; $("#counter").html("You have <strong>" + rest + "</strong> char."); if (rest <= 10) { $("#counter").css("color", "#ff7777"); } else { $("#counter").css("color", "#111111"); } }); It works fine! But if instead a val() I have text

NicEdit data not in POST

喜夏-厌秋 提交于 2019-12-05 13:10:50
Im sure im missing something really simple here and i have searched and cant seem to find an answer. With this simple form. how can i get the content from the NicEdit box to my HTTP POST. All i get is the origional textarea value not the edited verison. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <script src="http://code.jquery.com/jquery-latest.js"></script> <h2>Test Page</h2> <script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script> <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>

Limit the number of characters in a WYSIWYG Editor (NicEdit)

久未见 提交于 2019-12-05 08:19:08
I have this jQuery code: var char = 60; $("#counter").append("You have <strong>" + char + "</strong> char."); $("#StatusEntry").keyup(function () { if ($(this).val().length > char) { $(this).val($(this).val().substr(0, char)); } var rest = char - $(this).val().length; $("#counter").html("You have <strong>" + rest + "</strong> char."); if (rest <= 10) { $("#counter").css("color", "#ff7777"); } else { $("#counter").css("color", "#111111"); } }); It works fine! But if instead a val() I have text() it doesn't work. The problem is that at the end of available char it start to replace the text from

NicEdit html editor for managing dynamic add/remove textareas

纵然是瞬间 提交于 2019-12-02 09:14:28
Hi I am having problem with my dynamic add textarea, I need to have niceEdit html editor in all my textarea, It works good on hardcoded textarea but when I use my javaScript dynamic add function to to produce textarea it does not obtain the nicEdit html editor. could anyone tell me what I'm missing here. Any comments and suggestion is well appreciated. here's my jsfiddle Take it step by step. You need to instantiate for the new nicEditor Instance on each newly added controls. //Create the text area first and append it to DOM. var elm = $('<TEXTAREA NAME="description[]" id="test" ></TEXTAREA><a

How do I get the contents of a nicEdit form when submitting trough ajax?

让人想犯罪 __ 提交于 2019-11-30 00:50:39
So what I want to do is to submit a form using jQuery's AJAX function. And the route I choose to go was to use $('#form').serialize(); and then pass that as a GET request. It works out all dandy and fine and dandy until I add the editor, NicEdit, that I'm going to use on the site. I've researched the issue and the situation is so that once NicEdit takes over a text-area for example, it hides the text-area to the user and instead has her write into a . This data will then be put back into the text-area triggered by the push of a normal submit button. Now the issue is: I don't have a normal

How do I get the contents of a nicEdit form when submitting trough ajax?

匆匆过客 提交于 2019-11-28 21:39:00
问题 So what I want to do is to submit a form using jQuery's AJAX function. And the route I choose to go was to use $('#form').serialize(); and then pass that as a GET request. It works out all dandy and fine and dandy until I add the editor, NicEdit, that I'm going to use on the site. I've researched the issue and the situation is so that once NicEdit takes over a text-area for example, it hides the text-area to the user and instead has her write into a . This data will then be put back into the

Insert HTML in NicEdit WYSIWYG

喜欢而已 提交于 2019-11-28 12:31:42
How can I insert text/code at the cursors place in a div created by NicEdit? I've tried to read the documentation and create my own plugin, but I want it to work without the tool bar (Modal Window) This is a quick solution and tested in firefox only. But it works and should be adaptable for IE and other browsers. function insertAtCursor(editor, value){ var editor = nicEditors.findEditor(editor); var range = editor.getRng(); var editorField = editor.selElm(); editorField.nodeValue = editorField.nodeValue.substring(0, range.startOffset) + value + editorField.nodeValue.substring(range.endOffset,

Insert HTML in NicEdit WYSIWYG

旧街凉风 提交于 2019-11-27 07:01:47
问题 How can I insert text/code at the cursors place in a div created by NicEdit? I've tried to read the documentation and create my own plugin, but I want it to work without the tool bar (Modal Window) 回答1: This is a quick solution and tested in firefox only. But it works and should be adaptable for IE and other browsers. function insertAtCursor(editor, value){ var editor = nicEditors.findEditor(editor); var range = editor.getRng(); var editorField = editor.selElm(); editorField.nodeValue =