ckeditor

CKeditor 3.0 - How to know which toolbar button is clicked

Hi, I want to update few variables when any of the toolbar button (like bold, italic etc) is clicked. I'm unable to trap 'click' event on any of these buttons. Could somebody give me an example when clicking on 'bold' button would also pop up an alert box? How can I trap 'paste' event? I've googled a lot and searched ckeditor forum b...

Use ckeditor for enter Message in ASP.net and LINQ to SQL

hi I want to use Ckeditor for Entering text and I want to save that text in Database,but when I Write the text in editor and I want to save it in database this error appeared . A potentially dangerous Request.Form value was detected from the client (editor1=" this is my code : M.Body = editor1.Value; my feild that I want to sav...

How to push javascript value to server at postback?

Hi, I was just playing around with ckeditor and can't get the darn thing to work for me. I somehow need to "data bind" the text box just before or at the same time of post back. How do I do that? Loading the data is fine but when I click update I need to somehow retrieve the new value of the text box. It's not as easy as to call the cl...

How to create button without icon in CKEditor

When I create toolbar button in CKEditor 3.0 with following code I need to uncomment icon property to get button visible. Otherwise space is occupied but no label is shown. When I hover over it I get caption popping up. editor.ui.addButton('customButton', { label: 'Custom Action', //icon: this.path + 'ima...

CKEDITOR: problem with smiley plugin

Hi! There is a problem with the smiley plugin. I load my own images, edit these vars - CKEDITOR.config.smiley_images and CKEDITOR.config.smiley_descriptions in plugin.js but the images are not showing in the popup. why so? Please help. ...

ckeditor image button and IE

Hello, has anyone had any experience with this editor? Ive been integrating this editor into a web application i am working on, and generally it has been going smoothely, except for one problem (is it a surprise that it involved IE?). When the user clicks on the image button in anything except IE, every works as expected. When the use...

Preserving SCRIPT tags (and more) in CKEditor

Update: I'm thinking the solution to this problem is in CKEDITOR.config.protectedSource(), but my regular-expression experience is proving to be too juvenile to handle this issue. How would I go about exempting all tags that contain the 'preserved' class from being touched by CKEditor? Is it possible to create a block of code within t...

CKEditor: returning text with wrong html tags

when I retrieve the data from the textarea in the form, <?php $editor_data = $_POST['editor1']; ?> this works fine locally, but the remote server returns the text mixing up the style with escape slashes. like this: <h3 style=\"color: blue;\"> Initial value.</h3> I've no idea what I'm doing wrong. do you have any idea? thanks! eg...

Specifying a custom configuration file for CKEditor

Hi there, I am trying to add the CKEditor to a page I am currently developing but am having problems getting it to pick up my custom configuration file? I am using CKEditor in Visual Studio.NET 2008. I need to customize the toolbars that are displayed, as Basic is too minimal and Full would give an overwhelming amount of buttons to th...

ckeditor 3.0 causes "unauthenticated content" when simply included on an HTTPS page

When I include ckeditor aka fckeditor (version 3.0.1 revision 4391), which I downloaded from their site last week, into a page that is SSL encrypted, I get the Firefox broken lock icon and the warning "Warning: contains unauthenticated content". However, IE8 doesn't give this error at all. I checked the headers (Live HTTP headers), and e...

CKEditor - Edit default dialog template

Hi guys! I'm trying to customize the default look (template) of CKEditor's dialog box. I would like to switch the positions of OK button with the Cancel Button, so that the OK button is to the right. I tried to edit the dialog plugin in /plugins/dialog/plugin.js. On line 1191 I rearranged the array for the default buttons, without any re...

CKEditor instance already exists

I am using jquery dialogs to present forms (fetched via AJAX). On some forms I am using a CKEditor for the textareas. The editor displays fine on the first load. When the user cancels the dialog, I am removing the contents so that they are loaded fresh on a later request. The issue is, once the dialog is reloaded, the CKEditor claims t...

CKEditor IE8 issue

Has anyone experienced this problem with CKEditor and IE8? Basiclally, when the content included a nested p tag, you cant edit the content. i.e. <div> <p>This content cannot be changed in IE8</p> </div> Anyone have a fix? UPDATED with an example Sorry for pulling this back up, The problem is caused when the div has a width OR a he...

How Do I disable the button that hides/shows the toolbar in CKEdtor 3.0?

I'm current creating a custom configuration for a CKEditor installation. I got all fixed, besides disabling the toggle button that hides/shows the toolbar. So my question is: "How Do I disable the button that hides/shows the toolbar in CKEdtor 3.0?" ...

ASP.NET MVC Ajax and the CKEditor

I am working with MVC 1, and the CKEditor. I am integrating ajax forms which work great, but the editor window disappears after the ajax post. In webforms, I would have to not use ajax, or use a postback trigger. Is there a way to reload the editor on the ajax submission? Any help is appreciated. ...

Multiple instances of CKEditor (in Safari)

I'm having a problem creating multiple instances of a CKEditor in a JQuery UI dialog. The dialog loads a remote form via AJAX, so the goal is to be able to close and reopen the dialog and have a new instance of the editor. With the default options, when reopening the dialog it gives an error saying that an editor with that name already e...

CKEditor: Class or ID for editor body

I have an instance of CKEditor on a page. I am trying to give the CKEditor's body a class or ID so it matches some styles I have defined in a stylesheet. There is a API documentation that should give access to the respective DOM elements, but I can't seem to get it working. All objects I try to query that way turn out undefined. Does a...

How to integrate CKEditor into Asp.net MVC

Saw this post at CodeProject for FCKEditor. Can someone explain what about the new version? Thanks! ...

CKEditor - Trying to auto load filebrowser when no image is selected

I need suggestions on how to fire the Browse Server button automatically. My client wants to skip the whole Image Properties dialog and go straight to the file browser/uploader when the image button is clicked and no image is selected. Makes sense to me. I've figured out how to test for no image selected in the image plug in. But I can...

Set a value in CKEditor 3

Hello all, This probably is a very very basic question but i can't seem to find anything about it in the manual. All i want to do is set a value in textarea converted to a CKEditor instance. I tried to pull out some javascript functions with NetBeans, but i couldn't find one that looked like setting a value. So I figured, lets take a l...