fckeditor

Can I embed video using FCKeditor?

雨燕双飞 提交于 2019-12-25 01:27:21
问题 I need to create a Wiki using FCKeditor in which I want to provide the flexibility of embedding videos by users. Does FCKeditor support video embedding? If not, are there any plug-ins available for FCKeditor? 回答1: I believe it does. Unfortunately I'm not at work today so I can't easily double check, but there is this and this on the FCKeditor forum from 2008. Do these help? 回答2: I did something like that at my forums: How to insert a video. Here's the code of the plugin: fck_postvideo.html

How to add custom form element fckeditor in zend framework

假装没事ソ 提交于 2019-12-24 19:08:02
问题 I want to use fckeditor in my website using zend framework. Can any one explain how can we add custom form elements with zend framework ? 回答1: It is not the "good practice" here - to give a link, but I don't think this question can be answered better without copy-paste: http://www.leftcolumn.net/2009/03/10/zend-framework-how-to-add-fckeditor-to-a-zend_form/ http://www.zfsnippets.com/snippets/view/id/55 ps: I'm curious, why did not you google for first http://www.google.ru/search?q=zend+form

Can't insert img tag after adding custom plugin for image

梦想的初衷 提交于 2019-12-24 16:28:15
问题 I have written my own custom plugin for inserting images in CKEDITOR. I disable the image button in toolbar . I use the editor.insertHtml() function to insert the image from my custom plugin . When I remove the standard image button from the toolset it disables insertion of image tag in the CKEDITOR box . All other html tags are accepted but for the <img/> tag . This is my config(without the 'Image' in config.toolbar) : CKEDITOR.editorConfig = function( config ) { CKEDITOR.plugins.addExternal

FCKeditor JavaScript API throws “Security error” code: “1000” when I attempt SetHTML()

我们两清 提交于 2019-12-24 13:45:09
问题 After opening a webpage with exatly one FCKeditor window in it, I get the instance: i = FCKeditorAPI.GetInstance( "txtText" ) This works. I am also allowed: i.GetHTML() #=> <div class=".... etc., correct output But when trying i.SetHTML( "<h1>Quux</h1>" ) I get: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_... etc. ] I have an uncertain feeling, that in past, I was able to change the FCKeditor window contents with SetHTML(), but I'm not completely sure. What

CKEditor 4 Toolbar Dropdown in IE7

这一生的挚爱 提交于 2019-12-24 08:19:29
问题 I am using ckeditor 4 for my project. The dropdown list in ckedior toolbar is not opening in IE7 where as it is opening fine in Chrome and Firefox. Any idea why? Internet Explorer 7 Chrome 回答1: Actual version of CKEditor I was using is 4.0.1.1. I reverted back to CKEditor 4.0 and it worked in IE7 as well. It seems there is some problem with version 4.0.1.1. 回答2: I had a similar problem with IE9 downgraded to emulate IE7. Then I did not get a context menu. By forcing the document mode to at

Disabling CKEditor, Re-enabling with JS

核能气质少年 提交于 2019-12-24 07:57:33
问题 I have the following: POST page that allows users to write text in CKEditor VIEW Page, that views the text in CKEditor How can I make CKEditor in the view page READ only, meaning the user can not edit the text in the note? The reason I want to use CKEditor in the view page is for 2 reasons: 1. I can use JavaScript to move the editor from disabled to enabled 2. Keep the styles the same from the POST & View page. Is this possible? Thanks! B 回答1: not sure if you are still looking for an answer

Disabling CKEditor, Re-enabling with JS

断了今生、忘了曾经 提交于 2019-12-24 07:57:06
问题 I have the following: POST page that allows users to write text in CKEditor VIEW Page, that views the text in CKEditor How can I make CKEditor in the view page READ only, meaning the user can not edit the text in the note? The reason I want to use CKEditor in the view page is for 2 reasons: 1. I can use JavaScript to move the editor from disabled to enabled 2. Keep the styles the same from the POST & View page. Is this possible? Thanks! B 回答1: not sure if you are still looking for an answer

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

Is it wise to use jQuery for whitelisting tags? Are there existing solutions in JavaScript?

拟墨画扇 提交于 2019-12-23 19:12:02
问题 My problem I want to clean HTML pasted in a rich text editor (FCK 1.6 at the moment). The cleaning should be based on a whitelist of tags (and perhaps another with attributes). This is not primarily in order to prevent XSS, but to remove ugly HTML. Currently I see no way to do it on the server, so I guess it must be done in JavaScript. Current ideas I found the jquery-clean plugin, but as far as I can see, it is using regexes to do the work, and we know that is not safe. As I've not found any

CKEDITOR: how to I convert ALL html entities

。_饼干妹妹 提交于 2019-12-22 11:08:34
问题 here is the list: http://www.elizabethcastro.com/html/extras/entities.html I either want to enable all of them, or disable all of them... (aside from < and > of course) Is there a way to do this? there is the config.entities_additional = "", but that is a comma separated list of all the entities you want to store. preferably, I'd like to disable the entities entirely, but setting config.entities = false; doesn't do anything. o.o @Cheery's answer solves the situation where the editor uses the