ckeditor

CKEDITOR - turn off html encoding

百般思念 提交于 2019-11-28 07:16:17
问题 In my CKEDITOR, when I type following letters: ó " ... whitespace and more I am getting the following HTML: ó „ …   and so on... How can I turn this off, so that the server will receive "normal" letters? 回答1: I managed to reduce the number of characters converted by adding this to my config file: config.htmlEncodeOutput = false; config.entities = false; But whitespaces are still being converted into   ... 来源: https://stackoverflow.com/questions/20645750/ckeditor-turn-off-html-encoding

in asp.net-mvc, is there a good library or pattern to follow when saving users content (images, files, etc)

一世执手 提交于 2019-11-28 07:02:30
i have an admin section of my website where "authors" can upload files like pictures for photo galleries, etc to include in dynamic content sections of my website later. I have certain pages where the html itself is stored in my mySQL database and users can edit the content using ckeditor interface. i am trying to see if there is something to leverage that will save files to the right directory and retrieve them later or i should just write this all from scratch. Also, looking for lessons learned and things to be careful on (security, etc . .) I'll take a stab at this. An application that we

How to retrieve the CKEDITOR.status “ready”?

与世无争的帅哥 提交于 2019-11-28 06:53:05
In my script, I wanted to wait for the CKEDITOR to be in state ready before I let my own instructions go their way. So I consulted the CKEDITOR API and wrote the following condition: if(CKEDITOR.status == "ready"){ //execute my code when ready } However, the status never ever changes to from loaded to status . Apparently I didn even see any other state. More task specific, I wanted to catch the moment when CKEDITOR has completed modifying the inline replacing of contenteditable="true". That's when I want to go ahead with my JS code. Any clues? If you want to execute your code when the API is

how to use ckeditor in an angular js web App?

删除回忆录丶 提交于 2019-11-28 06:47:16
问题 I am struggling to use ckeditor within my html page built in angularjs . I have tried so many examples. ng-ckeditor directive ckeditor directive But none of those examples helped me. I want a textarea where I can input images within it and edit its contents style (Like in ckeditor ). Anyone please give me a clear example or demo fiddle on how to use ckeditor in angularjs . I have also tried custom directive. It's not working. Is there any alternative for ck editor? Thanks in advance. 回答1:

Apply CKEditor Advanced Content Filter to a string

我与影子孤独终老i 提交于 2019-11-28 06:33:15
问题 How can I apply CKEditor's Advanced Content Filter to a string? I'm trying to intercept pasted content using editor.on('paste', ...), get its ACF-filtered value, and then apply my own transformations to the filtered value. After this point, it's okay if it runs through the ACF again. 回答1: I reported recently a ticket which I think you'll find interesting: http://dev.ckeditor.com/ticket/11621. There's a pretty high chance that this feature will be introduced in CKEditor 4.5. ( Edit : This

CKEditor and ASP.Net MVC 3 RequiredAttribute

孤人 提交于 2019-11-28 06:25:12
I've integrated CKEditor 3 (formerly FCKEditor) into my asp.net MVC (v3 to be specific) application. I have a RequiredAttribute in my model for the field that needs the editor but the client side validation doesn't work correctly with CKEditor. When I try to submit and I've entered data into CKEditor the required validation doesn't see the data. If I try resubmitting again, then it works. I've looked around online and can't find a solution. I am also using Jquery and using the Jquery adapter http://docs.cksource.com/CKEditor_3.x/Developers_Guide/jQuery_Adapter If someone is looking for a more

How can I detect on change event in ckeditor instance?

*爱你&永不变心* 提交于 2019-11-28 06:25:06
问题 I want realize a "live" editing. When you editing content in ckeditor, the same content appear in other place (like div, p, etc.) in same time. Other interesting question : when I removed display:none and visibility:hidden from text area, which attach to ckeditor, I saw, that it's empty. But if I try to get value of textarea ($('#text_editor').val()) there are content from ckeditor. What is the magic? 回答1: One of the developers of ckeditor has developed an onchange plugin. 来源: https:/

How do I save inline editor contents on the server? [duplicate]

吃可爱长大的小学妹 提交于 2019-11-28 06:05:36
This question already has an answer here: ckeditor inline save/submit 3 answers I'm using CKeditor to allow users to inline edit the content on a page once logged in. I know I can access the data using: var data = CKEDITOR.instances.editable.getData(); but I don't know how to send the data to a script so I can update the database. It would be cool if the script ran each time someone deselected a contenteditable element... but I don't know if thats even possible. Any tips would be great! :) My site is built using php/mysql. Something like this: CKEDITOR.disableAutoInline = true; CKEDITOR.inline

ckeditor how to allow for .insertHtml(“<customTag myAttr='value'”></customTag>")

﹥>﹥吖頭↗ 提交于 2019-11-28 05:42:27
问题 var currentDialog = CKEDITOR.dialog.getCurrent(); currentDialog._.editor.insertHtml("<customTag myAttr='var'></customTag>"); Throws an error, TypeError: Cannot read property 'isBlock' of undefined If I try .insertHtml("<span>hello</span>") it works just fine. How can I change ckeditor to allow me to specify my own custom html tags via .insertHtml() ? I'd love to just change it to be something like <span class='custom'... or something like that, but I'm having to deal with legacy CMS articles.

CKEditor 4.2.2 - allowedContent = true is not working

半世苍凉 提交于 2019-11-28 05:20:35
问题 I guess I've read most of the SO questions and CKEditor documentation about this, but it does not work for me. It should be plain and simple, in my CKEditor config.js, I have this : CKEDITOR.editorConfig = function(config) { config.allowedContent = true; }; But the html is still filtered and this piece of code is being stripped : <p> <a href="/site/public/press.pdf"><span class="icon-presseFile"></span></a> <a href="/site/public/pics.zip"><span class="icon-pressePics"></span></a> </p> into