ckeditor

CKEditor doesn't apply inline styles to links

I'm using ckeditor version 3 as a text editor to create markup to be sent through email. This means that I have to have all the styles inline and anything that needs to be styled will definitely need the style applied. I'm currently using addStylesSet to generate custom styles that can be applied to elements. The problem I have is that...

What is all this stuff in the CKEditor folder?

A while ago I downloaded the latest version (3.1) of the CKEditor text editor. The directory name was ckeditor and I deleted the ckeditor/_source and ckeditor/_samples sub-directories, then I referenced the ckeditor.js file in my html pages, like so : <script type="text/javascript" src="ckeditor/ckeditor.js"></script> this works we...

ckeditor-ckfinder default attributes (width and height) to uploaded images

when i upload images using ckfinder in the ckeditor the image displays nicely using css width & height. i would like images to have default width and height attributes. How can i accoumplish that? greetings David ...

How can I add an onClick listener to a fileButton in CKEditor?

Title says it all, basically. I'm working in the image uploader plugin, and have a button definition like this: { type : 'fileButton', id : 'uploadButton', filebrowser : 'info:txtUrl', label : editor.lang.image.btnUpload, 'for' : [ 'Upload', 'upload' ], onClick : function() {alert('hey')} } I have tried defini...

prevent CKEDITOR from adding image dimensions as a style

Hello, In ckeditor: Is there a way to get the width and height attributes instead of css style attribute for the image dimensions? greetings David ...

how to call javascript function in main document from within iframe (ckeditor plugin)

I've built a simple CKeditor 3 plugin with one button that should just call a JS-function when somebody clicks it. The plugin (code when somebody clicks) looks like this and is working: var openAssetsBrowser = { exec:function(editor){ openAssetsBrowser(); } }; I always get the error "openAssetsBrowser is not a functio...

CKEDITOR Define Editable Area

I'm using CKEDITOR to update the body content of various pages on a website. While I have applied the existing stylesheets via config.contentsCss, I need to wrap the editable area in some HTML like: <div id="contentWrapper"> <div id="content"> [EDITABLE CONTENT] </div> </div> Additionally, I need for only [EDITABLE CONTENT...

ckeditor: how to wire up menu buttons?

I have ckeditor embedded into one of my pages....but I don't know how to wire up certain buttons in ckeditor to perform specific actions. Most importantly, how do I tell it when the save button is clicked to save the document? ...

When attempting to upload multiple images using an asp.net form called from CKEditor IE would crash

Hello there good people of StackOverflow, I recently needed to upload multiple images to CKeditor through an asp.net webform. Found a sample program and adapted it for my use and everything was going fine until one day I was told that when uploading three images in a row, IE would crash when trying to call the asp.net webform. However, ...

Detect when user has switched editing modes in CKEditor

In CKEditor, is there an event that can be bound to which fires when the user switches between the WYSIWYG view and the source view? If not, I need to enable/disable some other controls on the page when the view changes; what's my best strategy? ...

XSS Prevention, Tidy vs Purifier?

Greetings, I'm trying to prevent XSS and improper html from input fields using CKEditor (a javascript WYSIWYG editor). How should I filter this data on the server side? The two options I'm comparing are PHP Tidy and HTML Purifier. I'm interested in speed, security, and valid nesting. Edit: According to HTML Purifier, Tidy does not...

How can i limit the number of characters the user can enter into ckeditor?

Hi, I'm using the CKeditor and I need to be able to impose a maxLength restriction on it. For instance, prevent user from entering more than 100 characters, excluding the html characters applied by the user. Has anyone been able to do this? Thanks, I'd appreciate if you point me towards a resource. I found similar questions here but th...

CKEditor "s.document.getWindow().$ is undefined" error in Lightbox

I have a Content Management System where I'm using CKEditor to edit content loaded from a hidden form field on the page. When you click an edit button, CKEditor appears in a lightbox with the content inside. I'm using CKEditor 3.3, Lightbox_Me (http://buckwilson.me/lightboxme/), and jQuery 1.4.2 The code mostly works fine, however when ...

What Event is Triggered on Save Click in ckEditor?

I've added a ckeditor editor instance to my asp.net application. Now, I want to capture when the user clicks on the save button in the ckeditor toolbar - but I haven't been able to find what event is triggered by ckeditor when the save button is triggered. Does anyone know? ...

How do I install CKEditor with Django-WYSIWYG

I am trying to install the CKEditor for use with Django-WYSIWYG. This is proving to be oddly difficult. As mentioned on the site for Django-WYSIWYG, it is possible to "install" CKEditor by dropping the distribution file in the MEDIA_URL folder on one's system. In addition, you've got to set a variable in settings, which determines Djan...

text direction in CK Editor

How can i set text direction [rtl] on load editor. Can any one helper me in this regards. ...

CKEditor 'h is null' error when re-opening lightbox

I'm using CKEditor for a Content Management System. When someone edits the text on a page, a lightbox opens with CKEditor. When I close the lightbox, my code destroys the CKEditor instance. When you open it again, I get a Javascript error that says 'h is null' on line 13 of ckeditor.js Here's my code: $('#editSidebarModuleLightbox').ht...

Extract part of pasting html in CKEditor

I am using CKEditor for my asp.net mvc (C#) application. I need to extract a part of html before pasting to the CKEditor. For Ex, i have the following html ready to be pasted to CKEditor: <html> <body> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> Dummy Content ...

Ckeditor update textarea

He guys, I am trying to get the ckeditor working. Ubviously it doesn't make use of the textarea so on submit the form doesn't submit the text in the editor. Beceause i make use of polymorphic associations etc. I can't make a onsubmit function to get the value of the textarea (when the form is submitted) . So I found this question: ht...

Packages/solutions to add online document editing to an on-premise web application

I'm doing research to find 3rd party packages/solutions/widgets/back-ends to allow users of a website to upload and edit office documents online in their browser, akin to Google Docs. I haven't had much luck so wanted to see if anyone has any advice or pointers. Integrating Google Docs is, sadly, not an option, as the documents have to...