Hi,
I followed the example for the Timestamp tutorial step by step, and after some initial hiccups, I was able to get it to work beautifully.
I moved on to the Simple Plugin (Part 1), step by step. After a few attempts, I decided to just copy and paste the code... still nothing.
The editor doesn't load at all when I test it. The editor loads when I add the timestamp example plugin but doesn't show the Abbreviation button. I've matched the steps and code to the letter. The folder structure is respectively identical.
Any ideas?
Below is the plugin.js code for the abbreviation. But I'm 99% positive it's not a coding problem.
CKEDITOR.plugins.add( 'abbr', {
icons: 'abbr',
init: function( editor ) {
editor.addCommand( 'abbr', new CKEDITOR.dialogCommand( 'abbrDialog' ) );
editor.ui.addButton( 'Abbr', {
label: 'Insert Abbreviation',
command: 'abbr',
toolbar: 'insert'
});
CKEDITOR.dialog.add( 'abbrDialog', this.path + 'dialogs/abbr.js' );
}
});
(Solved)
It was a coding problem...
I had:
config.extraPlugins = 'timestamp','abbr';
and changed it to the correct:
config.extraPlugins = 'timestamp,abbr';
all working now.
Hi BKDan,
Hi BKDan,
great to hear you're working step by step through the tutorials -- any feedback is most welcome! Good to see you managed to solve the minor obstacle you encountered and thanks for posting the solution!
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Sure thing. I'm fairly new to
Sure thing. I'm fairly new to javascripting and just fumbling through, but fumbling forward, nonetheless. Haha.
If I may suggest something for the Tutortial, though, is to have a "Files you will be working in / creating and why" section within the tutorial; and also some alternate coding examples to illustrate the underline mechanics(?) of the code. For example: with the timestamp, if the developer wants to add the button to new toolbar instead of the 'insert' toolbar. (which would require changes to the config.js file).
And maybe a "FAQ when something goes wrong" section too, would be awesome.
Thanks a lot for these ideas
Thanks a lot for these ideas -- we will see how we can improve the situation. I suppose some more references to other resources might be helpful in this case, because some stuff might even already be described in another section, it's just a matter of linking to it.
Anyway, a considerable update and restructuring of our docs is just around the corner, so stay tuned! :)
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!