ckeditor

CKeditor, colour of text seems to be not retained although HTML is correct, how to resolve?

拜拜、爱过 提交于 2019-12-12 05:36:14
问题 I am using CKEditor 4.4.5. Users use the text colour icon to change the colour of a word which works fine. When one checks the underlying HTML, it shows: <p><span style="color:#FF0000">test </span></p> However when clicks the "source" icon again to return to the standard non HTML view, the colouring has gone, although the underlying HTML is still correct. If you take this HTML and render it in a browser it will work correctly. So it seems that CKEditor is not able to render text colour

WIRIS Editor save as img src instead of mathml in ckeditor

前提是你 提交于 2019-12-12 05:28:08
问题 I am using Wiris editor plugin in ckeditor. The Equations i type are saved as .png in wiris_plugin/cache_folder. is there any way to call this images as img src tag and store it in database 回答1: By default, our plugins work in full MathML mode (http://www.wiris.com/plugins/docs/full-mathml-mode) storing formulas as MathML in the database. However, if you prefer, you can store them as HTML img tags changing wiriseditorsavemode=image in your configuration.ini file as detailed in the

CKeditor instance is null or undefined?

烈酒焚心 提交于 2019-12-12 05:08:03
问题 Hi all i have an CKeditor in my screen ckeditor is displaying but when i try to get the instance of the editor i have the value null or undefined how can i get the ckeditor instance can any one help me here function editor() { //i have null here for (name in CKEDITOR.instances) { CKEDITOR.instances[name].destroy() } var editor = CKEDITOR.instances.editor1;//i have null here editor.on('key', function () { var data = editor.getData(); }); } $(document).ready(function () { var editorShort =

Javascript Ckeditor Get Mouse click position

荒凉一梦 提交于 2019-12-12 04:55:46
问题 I am using Ckeditor View: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="~/Content/ckeditor/ckeditor.js"></script> <input id="insertPattern" type="button" value="insert pattern" /> @Html.TextArea("editor", new { @class = "ckeditor", id = "aboutme" }) Javascript: $(function () { $('input#insertPattern').click(function () { var txtarea = document.getElementById("aboutme"); var selection = txtarea.getSelection().getStartElement().getOuterHtml();

CKEDITOR how to Identify scroll event

≯℡__Kan透↙ 提交于 2019-12-12 04:42:02
问题 Does anyone know how to catch the 'scroll' event in CKEDITOR? there is easy to identify change and other events, but I am unable to cathc Scroll event.. CKEDITOR.instances[i].on('change', function() {alert('text changed!');}); but when want to use same for scroll it does not working CKEDITOR.instances[i].on('scroll', function() {alert('I am scrolling!');}); does anyone know some workaround? Thx a lot M 回答1: First thing you need to know is that CKEditor's instance (which you get from CKEDITOR

CKeditor character/word count [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:39:27
问题 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 3 years ago . I need to display character count and word count with the new CKeditor. I tried to search for a plugin but there are none, except few hacks for the old fckeditor. 回答1: I have created a simple plugin that shows character count for all and selected text: https://github.com/MurzNN/ckeditor-characterscount 来源: https

How to get the value in textfield of ckeditor in asp.net

做~自己de王妃 提交于 2019-12-12 04:38:52
问题 I have used ckeditor in my asp.net webpage. Now the user will insert a textfield and enter some value in it. Then he submits the form... now at the server side how can I retrieve the value entered in that textfield ? Thanks in advance. 回答1: Should be in CKEditor1.Text depending on what you called it. 回答2: Please try to provide 'TextboxName.Text' in order to retrieve the submitted values. 来源: https://stackoverflow.com/questions/6467647/how-to-get-the-value-in-textfield-of-ckeditor-in-asp-net

CKEditor submitting empty content to the form.

 ̄綄美尐妖づ 提交于 2019-12-12 04:04:38
问题 I've started using CKEditor v3 few weeks ago.using it in a php project.i've been using it with jquery (using jquery adapter) and all this while using $.ajax (because can't handle for errors when using jquery form) to submit and i thought everything was alright . So here pops up a case where i need to use normal form mechanism to submit the ckeditor content and all the other information of the form. To my surprise the content was empty so i started google and apparently it's a known issue. i

Is it possible to modify this to remove all <img> tags before adding the new one

心不动则不痛 提交于 2019-12-12 03:57:38
问题 I have included part of my javascript below and what I want to know is upon success it adds an image to the editor. But how do I make it first remove all images from the editor before adding the new one? onComplete: function (file, json) { $('#upload-image').attr('disabled', false); $('.error-upload').remove(); if (json['success']) { alert(json['success']); var oEditor = CKEDITOR.instances.forum_signature; var value = document.getElementById('forum_signature').value; if (oEditor.mode ==

Load file into CKEditor textarea using Javascript

烂漫一生 提交于 2019-12-12 03:46:25
问题 Attempting to load file(s) into CKEditor 4 textarea using input button and javascript. The files contain simple HTML code and have extensions .inc and .txt What I have works, BUT ONLY after using browser back/forward buttons (which a student discovered by mistake). Using the input loads file from local drive, textarea goes blank but the loaded file only appears after using browser back/forward buttons? Here is the HTML we are using: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href=