fckeditor

How can I append text to html source in CKEditor?

两盒软妹~` 提交于 2019-12-21 04:45:19
问题 I use CKEditor in my web-application. By click on one link i appends some text to CKEditor. It works fine. But when I open source tab, i can not append this text to the existing source. Can you help me how can I do it? Thank you in advance. Sorry for my english. 回答1: If you are trying to append HTML text, you could use the createFromHtml method like this for example: var imgHtml = CKEDITOR.dom.element.createFromHtml("<img src=" + imageSrcUrl + " alt='' align='right'/>"); where imageSrcUrl is

Is it possible to use CKEditor in commercial web site? [closed]

ぐ巨炮叔叔 提交于 2019-12-20 17:29:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I plan to use CKEditor in commercial site. I've read http://ckeditor.com/license but I didn't understand how it is possible to have pricing for commercial use while they offer LGPL(which is good choice for commercial use) 回答1: Imagine you want to compile the javascript code of CkEditor into a binary application.

how to select a text range in CKEDITOR programatically?

六眼飞鱼酱① 提交于 2019-12-19 03:08:29
问题 Problem: I have a CKEditor instance in my javascript: var editor = CKEDITOR.instances["id_corpo"]; and I need to insert some text programatically, and select some text range afterwards. I already did insert text through editor.insertHtml('<h1 id="myheader">This is a foobar header</h1>'); But I need to select (highlight) the word "foobar", programatically through javascript, so that I can use selenium to work out some functional tests with my CKEditor plugins. UPDATE 1: I've also tried

Add class or ID to FCKeditor's editable iframe body

强颜欢笑 提交于 2019-12-13 02:08:24
问题 I'm using FCKeditor to edit the contents of a div. This content div has an ID set so my CSS can target the p, li, img, etc tags contained. I want the FCKeditor's contents to look the same as my div's contents. I have @import'd my stylesheet in the fck_editorarea.css, but of course the FCKeditor body does not have the ID set, so the styles are not applied. I have been trying to write a plugin for FCK to set the ID of the body tag in the inner iframe but can't get it working. Can anyone suggest

Change background of ckeditor?

核能气质少年 提交于 2019-12-12 20:58:55
问题 How do I change the background colour of CKEditor, where the user types the text? I need to do this dynamically but I cant find the element that needs to change. ANy idea of how to target it? 回答1: You can try with: CKEDITOR.instances.editor1.document.getBody().setStyle('background-color', 'red'); Where CKEDITOR.instances.editor1 is an instance of editor - you can test this e.g. here: http://ckeditor.com/demo 回答2: To change with 'myCss.css' file: myJavascript: CKEDITOR.document.$.body

Retrieve uploaded image from FCK Editor and insert into database

你离开我真会死。 提交于 2019-12-12 19:26:27
问题 The image uploaded using FCKEditor control has to be inserted into database. Anyone please help in how to get the image uploaded using FCK Editor control('image' button). The user should also be able to directly upload image from their local computer without uploading it to the server. The image choosen should be inserted into database directly. I have writtern function to insert image into database but do not know how to get the choosen image from FCKEditor control! 回答1: You can do that with

FCKeditor: displays the formating characters along with text

微笑、不失礼 提交于 2019-12-12 04:06:50
问题 have a form that uses FCKeditor. I can input with formatting, but when I bring back what I put in FCKeditor it also displays the raw html format syntax. I.E. <p><p>& Question: is there a setting I'm missing that uses the formatting to format the text instead of displaying the formatting syntax along with the text? thanks Randy 回答1: i dont know whether you are using ASP.net C# or not but if yes then first import using System.Text.RegularExpressions; using FredCK.FCKeditorV2; these two things

Validate FCKEditor blank or not

给你一囗甜甜゛ 提交于 2019-12-12 03:14:59
问题 i am trying to validate using JavaScript if the fckeditor value is blank or not but with no luck. i am creating the Editor using javascript : var oFCKeditor = new FCKeditor('txtMessage'); oFCKeditor.BasePath = "../fckeditor/"; oFCKeditor.ToolbarSet = "Default"; oFCKeditor.Height = "500"; oFCKeditor.Value = "test"; oFCKeditor.Create(); but when i use: if (document.form.txtMessage.value == "") { alert('You Must Enter a Message'); when the editor is empty and alerts me and i write something in

Unable to upload files which are 4MB or more

陌路散爱 提交于 2019-12-12 01:38:13
问题 I am trying to upload a file using my website. Everything works file until the file which I am trying to upload is 4MB or more. I have checked the IIS7.5 settings, and it seems to be set to 30MB upload size. I am using FCKEditor to upload the files. Does FCKEditor have a file upload limit? If yes, how do I change it? If no, why can't I upload files which are 4MB or more? 回答1: Increase The default is 4096 (= 4 MB) maxRequestLength to 1 GB in web.config & 60000 seconds or whatever time you

disable dragging in ckeditor

拟墨画扇 提交于 2019-12-11 16:13:33
问题 I am facing an issue with my ckeditor. I am loading an entire page of HTML into the ckeditor. It's loading and showing fine. I want to let users edit only the data (texts), but not its alignment. But in editor each div is draggable (like the textbox in office word). How can I lock these areas. 回答1: You might consider using Jeditable instead of ckeditor. That way you can individually allow users to edit each text block. 回答2: I've used the following JS code before to disable text selection. You