ckeditor

Custom plugin with DOM manipulation CKEditor 4.x

ぐ巨炮叔叔 提交于 2019-12-24 02:16:13
问题 I am developing one custom plugin for the CKEditor 4.7 which do a simple think take in case user select some stuff it will put it in a div with specific class, else it will put a div with same class just with text like 'Add content here' I try to use some functions according to CKEditor docs but have something really wrong. here is the code for the plugin folder name=> customdiv , file=> plugin.js CKEDITOR.plugins.add('customdiv', { icons: 'smile', init: function (editor) { editor.addCommand(

Wrap tables in div with CKEditor in Drupal textarea input

感情迁移 提交于 2019-12-24 01:42:23
问题 I'm working in Drupal, got CKEditor set up and have the tables plugin going on. The design I'm working with requires some visual elements that would be made A LOT easier if I had a div with a class wrapped around the tables in the output (because tables can't have padding on their sides in IE)... SO.. I'm can think of 2 ways to do it, but don't know and can't figure out how to do either: 1)Use CKEditor to wrap all table elemnts in a div with a class.. 2)Use Drupal input filter to wrap all

MVC2 application with Ckeditor "potentially dangerous Request.Form

谁都会走 提交于 2019-12-24 00:43:40
问题 I'm getting the "Potentially dangerous Request.Form request value was detected from the client" exception when im using my FCK editor. How could encode before submit the form, or disable this validation without disable the Data Anotations validation? This is the code of my view: <% using (Html.BeginForm()) {%> <%: Html.ValidationSummary("Please complete in a right way the fields below.") %> <fieldset> <legend>Fields</legend> <div class="editor-field"> <%: Html.LabelFor(e => e.Name)%> <%: Html

CKeditor textarea is disabled up until when I click the source button?

北城余情 提交于 2019-12-24 00:07:50
问题 I am really confused about CKEditor. When I load or reload the page the CKEditor is automatically disabled on the first request of the page. Whenever I click the source button, and again click source for normal editing, the content area is enabled and I can write only then. 回答1: I faced the similar issue for a textarea that was hidden when page loads...and on some action say a button click...it was displayed...I had exactly the same behavior. I was initializing CKEDITOR.replace('control') at

CKEDITOR 4: Table cell selection not coming properly on Chrome and IE

ぐ巨炮叔叔 提交于 2019-12-23 21:43:36
问题 I want to select only first two cells of an column, I am able to select in Firefox but Chrome and IE I am not able to select like that. What to do now? 回答1: It's not a CKEditor issue but browser-related problem and there's no workaround for that. This is because, due to the lack of standards and recommendations, different vendors implemented many contenteditable features in a totally different way. And this is one of them. There's nothing we can do about it until some standards emerge. 回答2:

Need to integrate Elfinder File manager with CKEditor

随声附和 提交于 2019-12-23 19:42:35
问题 Trying to find on google how to integrate elfinder with CKeditor, but not works. There is an instruction here but, its not work. It able to open elfinder. but, when i double click on image, it do not pass URL to image filed, but open picture viewer. Try again and find this link but, its not help too. And some people said that coding at github is usable for version 1. Now, elfinder is using version 2.0 rc1. So, is there anyone could help me to integrate with CKeditor? It will be great. Thanks.

CKEditor TypeError: c[a] is undefined in CodeIgniter

冷暖自知 提交于 2019-12-23 17:34:52
问题 Im trying to install CKEditor in my codeigniter based website and I have followed this tutorial: CKEditor in Codeigniter Tutorial But Im receiving this error: TypeError: c[a] is undefined CKEDITOR.lang.load/d() ckeditor___ckeditor:230 CKEDITOR.scriptLoader</<.load/f() ckeditor___ckeditor:231 CKEDITOR.scriptLoader</<.load/x() ckeditor___ckeditor:231 CKEDITOR.scriptLoader</<.load/A() ckeditor___ckeditor:231 CKEDITOR.scriptLoader</<.load/u/g.$.onerror() The folder which ckeditor folder is in:

Preventing CKEditor from adding 'data-cke-saved' and converting &lt

你。 提交于 2019-12-23 17:09:41
问题 I have a jQuery implementation of CKEditor. We frequently add HTML markup to the 'title' attribute of an A tag using the dialog. However when we do this, it converts the HTML code so that it is parsed as text. We need the code to stay in the exact form that it was entered in, instead of it placing 'data-cke-saved' everywhere, and converting the <> to &lt and &gt. I have tried turning entities off in the config, but it doesn't seem to work. Can anyone help? Thanks. 回答1: SRC: http://docs

ckeditor initizialize and destroy

拜拜、爱过 提交于 2019-12-23 16:28:11
问题 I know there are similar question on stackoverflow or google, but nothing helps so far.. I use ckeditor with jquery adapter in leatest stable version. After clicking back and forward i got following error in firebug: uncaught exception: [CKEDITOR.editor] The instance "cause" already exists when i now try to destroy the editor by: var editor=jQuery("#cause").ckeditorGet(); editor.destroy(); i got following error: CKEditor not yet initialized, use ckeditor() with callback. If i try to reproduce

Ckeditor removes table tags

旧城冷巷雨未停 提交于 2019-12-23 10:58:21
问题 I've upgraded the old ckeditor with the new ckeditor, only I'm struggling with the behaviour of the new one. It seems that the new one removes my complete table. For example from this input: <table> <tr> <td> This is a test </td> </tr> </table> he will make this: <p>This is a test</p> I need the table, so how can I prevent ckeditor to replace my <table> tags with a <p> tag? 回答1: config.toolbar = [ { name: 'insert', items: [ 'Table' ] } ]; please use the above code as in new versions of ck