Hi, i'm just trying CKEditor 3 for the first time. I've downloaded the latest version.
I want to enable ENTER_BR mode but it seems to cause a javascript error and the editor is not drawn on the page.
HTML:
<TEXTAREA NAME="tracklisting"><?=$tracklisting?></TEXTAREA>
<script type="text/javascript">
CKEDITOR.replace( 'tracklisting',
{
toolbar : 'MyToolbar',
height:"200", width:"455"
});
</script>
config.js:
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
[
['Source','-','Paste','PasteText','PasteFromWord','-'],
['Bold','Italic','Strike','-'],
['Link','Unlink'],
];
config.enterMode : CKEDITOR.ENTER_BR;
};
Everything works as normal until I add the "config.enterMode : CKEDITOR.ENTER_BR;" line to config.js
I'm using Firefox 3.5.5 - have I written this correctly or is there a bug?
Thanks
Ashley
I want to enable ENTER_BR mode but it seems to cause a javascript error and the editor is not drawn on the page.
HTML:
<TEXTAREA NAME="tracklisting"><?=$tracklisting?></TEXTAREA>
<script type="text/javascript">
CKEDITOR.replace( 'tracklisting',
{
toolbar : 'MyToolbar',
height:"200", width:"455"
});
</script>
config.js:
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
[
['Source','-','Paste','PasteText','PasteFromWord','-'],
['Bold','Italic','Strike','-'],
['Link','Unlink'],
];
config.enterMode : CKEDITOR.ENTER_BR;
};
Everything works as normal until I add the "config.enterMode : CKEDITOR.ENTER_BR;" line to config.js
I'm using Firefox 3.5.5 - have I written this correctly or is there a bug?
Thanks
Ashley
Re: config.enterMode : CKEDITOR.ENTER_BR; not working
It is because you have a colon instead of an = sign.
Here is an example: http://www.exposix.com/answers/2-Using-CKEditor-how-do-I-insert-br-instead-of-p-tags.html
Re: config.enterMode : CKEDITOR.ENTER_BR; not working