ckeditor

Key events not working for multiple ckeditors

感情迁移 提交于 2019-12-10 17:19:03
问题 I have this jsfiddle Here a filter word is alerted to the user when he types it on the ckeditor .In my example the filtered words are ants and words .So if you type these words it will alert the user. html <input type="textarea" id="editor1"/> <div id="dest"></div> js var filter = ['ants', 'words'], // our list of words regAry = new Array(), // we'll create one regex per word for testing alertedWords = new Array(), // keep track of how many words there were at the last alert, for each word

CKEditor: Submenu (drop downlist) not appearing

送分小仙女□ 提交于 2019-12-10 17:06:21
问题 I need a drop down submenu list within the drop down menu list in plugin. but problem is, that menu shows that It has drop down submenu list but contents of list are not being loaded. empty submenu is shown. Snap shot: code : CKEDITOR.plugins.add( 'microdata', { requires : [ 'styles', 'button' ], init : function( editor ) { var markup= editor.config.languages, items = {}; for ( var i = 0 ; i < markup.length ; i++ ) { var parts = markup[i].split( '=' ); var name= parts[1].split('org/'); items[

How to get contents of CKEDITOR when postingback in asp.net

那年仲夏 提交于 2019-12-10 16:34:58
问题 I used CKEDITOR in my ASP.NET project, the page contains asp:TextBox with TextMode="Multiline" and a linkbutton. When I press linkbutton I can't get the TextBox value in postback.. No errors occured... How to get content in server side? I was thinking of use jQuery to track changes on content of CK and copy it to the hidden textarea..but didn't seem to be right. I'm using javascript version of CK v4.2 , not .net library version. Addition: In the sample downloaded with CKEditor.zip file you

CKEditor inline editor on elements within an iframe

梦想的初衷 提交于 2019-12-10 16:12:12
问题 In an application I have content editable elements within an iframe and want to apply inline CKEditor to those elements. It works except when I scroll the iframe the CKEditor toolbars do not scroll with it. Is there a special flag or some way to get the toolbars to scroll with the iframe contents rather than with the parent window? Also I want to avoid adding the CKEditor script into the iframe. 回答1: You can achieve this by wrapping the iframe with a container element that is the same size as

Can the CKEditor be used in a WinForms application for (X)HTML editing?

北慕城南 提交于 2019-12-10 15:59:27
问题 I have adapted the code from winforms html editor to C# (see below). Is it possible to use the CKEditor instead? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WebEditorTest { /// <summary> /// https://stackoverflow.com/questions/214124/winforms-html-editor /// </summary> public partial class Form1 : Form { public Form1() { InitializeComponent(); }

CKEditor 3.6.3 Enable browser spellcheck and disable context menu

流过昼夜 提交于 2019-12-10 15:27:58
问题 I'm trying to get a spellcheck into a very bare bones implementation of CKEditor . I've disabled ALL the toolbars and plugins, so we're just left with a simple text box that creates basic HTML. Is it possible re-enable the browser/OS spellchecking? The CKEditor contextual menu is also pretty useless. I wouldn't mind getting rid of that too if that's possible. 回答1: There's a config setting that disables the built-in spell checker if a browser provides one. It's set to true by default, try

CKEditor security best practices

瘦欲@ 提交于 2019-12-10 14:55:51
问题 I am using http://ckeditor.com/ in a small PHP/MySQL forum I built. My questions: Is it safe to save user-created HTML like this in the database and then re-display it in my application? What precautions should I take to keep the users of my forum safe from script injection and the like? <p>test</p> <span style="font-size: 14px;">test</span> Would it be safer to use BBCode instead of HTML? I tried the ckeditor bbcode plugin but it lacks some basic formatting like text alignment ... Does

ReferenceError: CKEDITOR is not defined

丶灬走出姿态 提交于 2019-12-10 14:54:52
问题 I am trying to use the CKeditor but the following error shows up (in JS console) when I try the sample from the tutorial and only a texbox shows in the browser. ReferenceError: CKEDITOR is not defined [Break On This Error] CKEDITOR.replace( 'editor1' ); /xampp/ (line 13) Note that the sample works when I try it on my webhosting. The file ckeditor.js is accessible from the browser. 回答1: Remove the leading slash from /ckeditor/ckeditor.js (so try with ckeditor/ckeditor.js ). The leading slash

How to prevent CKEditor from setting the title to its iframe?

寵の児 提交于 2019-12-10 14:48:43
问题 I use the CKEditor and also the jQuery UI's tooltips plugin. What happens is that CKEditor sets the title attribute to its iframe element and the jQuery tooltips plugin converts that into a tooltip and then, whenever you hover with the mouse over any part of the Editor (which you have to do every time you edit text), the tooltip always shows, saying "Rich text editor, elementId". Even if I set the tooltip plugin's selector to "*:not(iframe)", it still does it. The only way I've found so far

React unmount and remount child component

时光怂恿深爱的人放手 提交于 2019-12-10 14:23:08
问题 I have an npm imported component (CKEditor) that only cares about the state of its parent component at the time it mounts. I.e., no matter what changes occur in the state of the parent component, CKEditor won't reflect those changes if it has already mounted. This is an issue for me because I need CKEditor to change based on the state of the parent component when the parent component changes its language prop. Is there a way for me to make a child component unmount and mount again from the