Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
894 views
in Plugins by
Where is the toolbar's configuration file?

I need to add some buttons. Editing in the admin page nothing happend.

Thanks in advance.

1 Answer

0 votes
by
selected by
 
Best answer

Toolbar is configured in admin panel of CKEditor4 plugin.

  • "Admin" > "Plugins" > "Ckeditor4 options" > "Toolbar buttons"
  • "Admin" > "Plugins" > "Ckeditor4 options" > "Advanced toolbar buttons"
What do you mean about "nothing happened"?
by
When I add a plugin and the respective button, it doesn't appears or the edeitor doesn't load properly.

Btw. Was my japanese correct? I'm studying japanese since last year.
http://www.question2answer.org/qa/46748/ckeditor-4-v143-by-sama55
by
edited by
In order that I investigate it, please write your settings here. Depending on your amount of information, my advice will change. In addition, please check Javascript error with browser development tools (console).

https://developer.chrome.com/devtools
https://developer.mozilla.org/en-US/docs/Tools/Browser_Console
https://msdn.microsoft.com/en-us/library/bg182326(v=vs.85).aspx

By the way, did you change editor?
"Admin" > "Posting" > "Default editor for questions"
"Admin" > "Posting" > "Default editor for answers"
"Admin" > "Posting" > "Default editor for comments"

P.S.
Your Japanese is excellent. Please understand time difference between your country and my county. JST is GMT+9:00. I'm working on when a lot of people are sleeping, and I am sleeping when a lot of people are working. ^_^
by
Thanks for the answer. I'm living in Argentina. Almost 12 hours behind your time zone.

I'm using CKE 4 as editor in questions and answers.

----- The basic configuration ----
['Bold','Italic'],
['Link','Unlink'],
['NumberedList','BulletedList','Blockquote'],
['Image','HorizontalRule','Smiley'],
['RemoveFormat','Maximize']

toolbarCanCollapse:false,
removePlugins:'elementspath',
removeButtons:'Subscript,Superscript',
resize_enabled:false,
autogrow:false,
entities:false,
extraPlugins:'smiley,font'
---------------------------------------------

---------- My modifications ------------
['Bold','Italic'],
['Link','Unlink'],
['NumberedList','BulletedList','Blockquote'],
['Image','oembed', 'HorizontalRule','Smiley'],
['RemoveFormat','Maximize']

toolbarCanCollapse:false,
removePlugins:'elementspath',
removeButtons:'Subscript,Superscript',
resize_enabled:false,
autogrow:false,
entities:false,
extraPlugins:'smiley,font,oembed,widget',
oembed_maxWidth = '560',
oembed_maxHeight = '315',
oembed_WrapperClass = 'embededContent'
---------------------------------------------

Two errors.

---------------
1) Uncaught SyntaxError: Unexpected token =

2) Error in event handler for (unknown): TypeError: Cannot read property 'state' of null  at CSRecorder.onQueryStateCompleted (chrome-extension://cplklnmnlbnpmjogncfgfijoopmnlemp/content_scripts/recorder.js:43:13)handler @ extensions::uncaught_exception_handler:8
---------------
by
I got it. Format between config file of CKEditor and option of CKEditor4 is different a little. Try to change your "Other configuration" (From " = " to ":").

toolbarCanCollapse:false,
removePlugins:'elementspath',
removeButtons:'Subscript,Superscript',
resize_enabled:false,
autogrow:false,
entities:false,
extraPlugins:'smiley,font,oembed,widget',
oembed_maxWidth:'560',
oembed_maxHeight:'315',
oembed_WrapperClass:'embededContent'

Reference about oembed plugin:
http://www.question2answer.org/qa/38975/tips-media-oembed-plugin-with-ckeditor4-plugin
Note: oembed plugin depends on some other plugins (widget, dialog, lineutils,clipboard). You can confirm dependencies with each plugin download dialog. Especially, in new CKEditor, this dependencies seems to be changed. Please be careful.
by
どうもありがとうございます君様。 [ 君様 weird choise of words :) ]
All the changes made.
all dependencies installed.
Only one but new error.

Uncaught TypeError: CKEDITOR.tools.getIndex is not a function plugin.js?t=F61C:1951

addUpcast    @    plugin.js?t=F61C:1951
addWidgetProcessors    @    plugin.js?t=F61C:1946
Repository.add    @    plugin.js?t=F61C:222
CKEDITOR.plugins.add.init    @    plugin.js?t=F61C:55
(anonymous function)    @    ckeditor.js?1.7.0:227
CKEDITOR.scriptLoader.load.k    @    ckeditor.js?1.7.0:209
CKEDITOR.scriptLoader.load.n    @    ckeditor.js?1.7.0:209
CKEDITOR.scriptLoader.load.o    @    ckeditor.js?1.7.0:209
(anonymous function)    @    ckeditor.js?1.7.0:210
by
It might be a issue of CKEditor or plugins.
https://github.com/galetahub/ckeditor/issues/588
by
Ok. Then I must check CKE4.
Thank you !!!!
...