Opened 13 years ago
Closed 13 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: |
Description
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 = { toolbar: [ ['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 "google.ca" beside "http://" and then click "Save & Close", the text gets saved as:
<p> <a href=\"http://google.ca\">http://google.ca</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 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 3.6.2 |
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: http://php.net/manual/en/security.magicquotes.php