Opened 12 years ago

Closed 12 years ago

#8733 closed Bug (invalid)

When inserting a URL, CKEditor escapes the double quotes, breaking the URL

Reported by: brettalton Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version:
Keywords: Cc:


I'm using the jQuery adaptor to load CKEditor into our CMS. This is how I am loading it:

	$("#add-article-button").click(function (){
		var config = {
				['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']

		// Initialize the editor.
		// Callback function can be passed and executed after full instance creation.
		$('#add-article .wysiwyg').ckeditor(config);
		CKEDITOR.config.width = '360px';

When I add text, select some text and click the "link" button, then try to add "" beside "http://" and then click "Save & Close", the text gets saved as:

	<a href=\"\"></a></p>

This effectively breaks the link.

No where in my PHP am I add escape_quotes() or any function of the sort. I'm using FuelPHP and do not use such functions.

Moreover, it appears to only occur on my Mac (10.7.2) and in Chrome (17). In Linux (Ubuntu 11.04) using Chrome (17) or Firefox (9), it doesn't seem to occur.

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 3.6.2

and then click "Save & Close", the text gets saved as

CKEditor has nothing to do with saving. You should rather look for answer to this problem in your PHP.

One thing might be that you have magic quotes enabled:

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy