Hi,
Have been tearing my hair out with this for the last hour & thought I'd better share this with you in case anyone else comes across the same problem...
I defined a custom toolbar in config.js, exactly according to the examples in the docs. The problem came when I came to create an instance of the editor - I was calling it using the window.onload method from the header, rather than inline in the code, as this is surely better programming practice... separation of code from logic etc.
Anyway, I tried to replace the toolbar using this code:
...but when I loaded the web page no editor would display at all. Strangely enough though, when creating an editor instance inline instead (i.e. removing the window.onload function and adding the <script> tags in the HTML code after the <textarea>), it worked completely fine.
Is this a bug? It should at least be mentioned in the documentation...
Hope this helps
Chris
Have been tearing my hair out with this for the last hour & thought I'd better share this with you in case anyone else comes across the same problem...
I defined a custom toolbar in config.js, exactly according to the examples in the docs. The problem came when I came to create an instance of the editor - I was calling it using the window.onload method from the header, rather than inline in the code, as this is surely better programming practice... separation of code from logic etc.
Anyway, I tried to replace the toolbar using this code:
CKEDITOR.replace( 'blogeditor' , { toolbar : 'MyToolbar' });
...but when I loaded the web page no editor would display at all. Strangely enough though, when creating an editor instance inline instead (i.e. removing the window.onload function and adding the <script> tags in the HTML code after the <textarea>), it worked completely fine.
Is this a bug? It should at least be mentioned in the documentation...
Hope this helps
Chris