ckeditor

CKEditor Insert HTML

非 Y 不嫁゛ 提交于 2019-12-19 02:29:09
问题 I have a data from database. In my js file, I would like to change my CKEditor text editor's value. My value is raw html. I want this raw value to be written on an empty CKEditor text editor. I tried these but got an undefined function error all the time : CKEDITOR.instances.myEditorID.insertHtml( '<p>This is a new paragraph.</p>' ); CKEDITOR.instances.myEditorID.setData( '<p>This is the editor data.</p>' ); I tried this too but still undefined function error : CKEDITOR.instances.YOUREDITORID

How to use ckeditor in angular JS app? [duplicate]

喜你入骨 提交于 2019-12-19 02:05:38
问题 This question already has an answer here : how to use ckeditor in an angular js web App? (1 answer) Closed last year . I'm an angularJS newbie and i need to use ckeditor for a textarea in my app. Before i've tried it on the angular app i've done a "html only" webpage. I've generated my ckeditor package here and added the needed tags (as below) and it works like a charm. <!DOCTYPE HTML> <html> <head> <title>CKEditor test page</title> <meta charset="utf-8"> </head> <body> <script src='.

http://www.blogjava.net/haha1903/archive/2010/04/05/317486.html

那年仲夏 提交于 2019-12-18 22:59:08
ckeditor配置大全,config.js CKEditor 的时候,看到的匹配 class 的正则表达式。 (?:^| )editor(?:$| ) 看了半天没明白,后来打开 RegexTester 试了一下,原来(?:^| )是“字符串开始或空格开头”的意思,后面的(?:$| )同理。 sigh,以为自己正则表达式也看过一些了,但看了 perl 和 js 一些库之后,觉得自己的正则表达式水平怎么也忒差了点儿,再学学吧。 另外: CKEditor 的 config.js 里面的内容是 CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: //config.language = 'fr'; config.uiColor = '#CCDC6E'; }; 我眼花了,还以为是返回一个 Object config 呢,害得我写上了: config.filebrowserUploadUrl : '/ckeditor/test.jsp', 严重语法错误,死都不能用,看了半天的 CKEditor source 才弄明白怎么回事儿。 怎么这么惨啊。 附一篇 CKEditor config 的说明: 转自:http://blog.csdn

How to change an already registered dialog in CKEditor

送分小仙女□ 提交于 2019-12-18 17:16:28
问题 I'm trying to write a plugin, that adds an additional tab (page) to the image dialog. I don't want to change the dialog's source itself, but enhance it with the plugin. I searched the docs and the forum for quite some time now, and I now know that I can call "addPage" on the dialogs object to add another tab. I also understand how the contents object must look like. But I failed in finding the way how to get the dialog object of an already existing dialog. I tried a var ImageDialog = new

Rich Text Editor (WYSIWYG) in CRM 2013

我怕爱的太早我们不能终老 提交于 2019-12-18 13:39:31
问题 Sometimes it is useful to have the HTML editor in CRM interface. It is possible to implement the editor directly to CRM 2013. As editor we will use ckeditor which allows to use it without installation on the server. 回答1: Identify the field where you would like to use the rich text editor. Create html-webresource which will define ckeditor. Go to Settings-Customizations-Customize the System-Web Resources . In html editor of web resource, select the Source tab and insert the following code:

Autocomplete lists in CKEditor [closed]

怎甘沉沦 提交于 2019-12-18 13:29:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I need to add a functionality to my CKEditor to give suggestions to user when he types '#' in document, the suggestions can change on the fly depending on some other fields on the page. please help 回答1: In order to make a suggestion box, you will have to make your custom plugin to

jquery validation of textarea integrated with ckeditor

我的梦境 提交于 2019-12-18 13:26:56
问题 I have a text-area <td><textarea id="event-body" name="body"> <p class="error"></p> That is integrated with CKEDITOR CKEDITOR.replace("event-body") And jquery validate plugin. And the code is like this $('#event').validate({ rules:{ name:{ required: true }, }, messages:{ body:{ required: "event body is required" } }, errorPlacement: function(error, element){ $(element).each(function (){ $(this).parent('td').find('p.error').html(error); }) }); The code works just fine but when I type into my

How to load ckeditor via requirejs

守給你的承諾、 提交于 2019-12-18 13:01:33
问题 I'm having issues trying to load ckeditor via requirejs (I've tried converting the main ckeditor js file into individual modules but that has just caused all hell to break loose) and so I'm now checking to see if there is a very simple way to do this that I've missed. I know requirejs allows you to load normal js scripts so maybe just loading the ckeditor.js file (un-edited, so it's still an IIFE/self-executing function) - would that work with requirejs or if you're using requirejs for

add code for event listener for keypress in ckeditor

☆樱花仙子☆ 提交于 2019-12-18 12:55:19
问题 I need to add an event listener for keypress after the CKEditor is loaded. The code is something like: CKEDITOR.instances.editor1.document.on('key', function(event) { /* instructions */ }); Any idea where can I add the code for that? In which file or in what way? 回答1: Code to archive it is something like this: CKEDITOR.on('instanceCreated', function(e) { e.editor.on('contentDom', function() { e.editor.document.on('keyup', function(event) { // keyup event in ckeditor } ); }); }); Edit - 2014 -

Bootstrap with CKEditor equals problems

六眼飞鱼酱① 提交于 2019-12-18 12:27:42
问题 I'm trying to create a Bootstrap modal which contains an instance of CKEditor, but there are a lot of problems... So basically the fields are left unenabled, they don't look like, but I can't interact with them. Does anybody have a solution to this strange behavior? 回答1: FWIW, I couldn't get Peter's solution to work, but the following worked for me, and still keeps the hack in a separate file so you don't have to edit any Bootstrap source files: // bootstrap-ckeditor-modal-fix.js // hack to