Hi,
I've been looking through the forum for a while for the answer, but not found one yet. My issue is (hopefully) simple.
Sometimes (dependent on browser / version) the tags get changed when the page saves, so a <p> tag becomes «p». Obviously when the page is reloaded with the text in it, it does not build as HTML and just becomes a text string.
Edit: This behaviour is happening on all browsers I am testing. There seems to be no rhyme or reason to it.
Has anyone experienced this behaviour?
I've added my config file for reference. I thought the config.entities = false might fix it, but it hasn't.
many thanks
Hamish
I've been looking through the forum for a while for the answer, but not found one yet. My issue is (hopefully) simple.
Sometimes (dependent on browser / version) the tags get changed when the page saves, so a <p> tag becomes «p». Obviously when the page is reloaded with the text in it, it does not build as HTML and just becomes a text string.
Edit: This behaviour is happening on all browsers I am testing. There seems to be no rhyme or reason to it.
Has anyone experienced this behaviour?
I've added my config file for reference. I thought the config.entities = false might fix it, but it hasn't.
CKEDITOR.editorConfig = function( config ) { config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_BR; config.pasteFromWordRemoveFontStyles = true; config.toolbar_Basic = [ ['Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink'] ]; config.toolbar_BasicTable = [ ['Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink','-','Table','JustifyLeft','JustifyCenter','JustifyRight'] ]; config.toolbar = 'Basic'; config.toolbarCanCollapse = false; config.resize_enabled = false; config.entities = false; };
many thanks
Hamish
Re: Replaces angle brackets with double angle brackets
I found the following site kinda helpful - it describes the type of angle bracket I am seeing;
http://www.fileformat.info/info/unicode/char/00ab/index.htm
It looks like it comes from a latin block, so I tried
config.entities_latin = false;
but this made no difference to the output.
If it makes a difference my page has multiple instances of CKeditor running, all as text areas with a .replace script on each. But as soon as I leave the page it just changes all the tags to the above brackets.
I can run a search replace on the code before I republish it, but that's no long term solution.
It's frustrating
Cheers
Hamish