Closed rowild closed 4 years ago
The indentions are wrong, can you fix them please?
Fixed both. Thank you!
One more suggestion: Prefix all new options with "editor" so the developers know they belong to the ckeditor, i.e:
editorPlugins
editorRemoveButtons
Good idea! How about "htmleditor", "texteditor", or "ckeditor"? The docu and the code already have a lot of "editor" strings, which mostly refer to the user group definition and not to text editing... I would prefer "ckeditor".
Not for 2020.10 because this would be breaking
Is this also true for "editorTags" instead of editortags"?
Can you please one last time confirm/fix?
editorPlugins <== not "editorExtraPlugins"? editorRemoveButtons editorTags <== or keep "editortags"?
Good point. I would use
editorplugins
editorremove
to keep the config options short
OK, fixes coming up soon... Thanks!
Actually no. I must be a PITA once more in respect to "editorremove". CKEditor has more remove options, like "removeFormat", "removeListeners", "removeAllListeners", and "removeMenuItem". For the sake of being future proof (or whatever), I would recommend to be precise and stick with "editorremovebuttons" (which looks horrible, why not camel case?). Also "editorextraplugins" instead of "editorplugins", since there is a "plugins" key on CKEDITOR.
OK, then camel case
The naming convention of the configurable options was adapted:
editorcfg: was left as is for backwards compatibility editortags: detto editorExtraPlugins: the prefix "editor" and camelcase notation is now used editorRemoveButtons: [New option] prefixed with "editor" and camelcased
These changes go along with code changes in aimeos-docs.
Thanks a lot for your PR! :-)
Add a
removeButtons
option and changeeditortags
andextraPlugins
config options, so users can override them.Necessary, because CKEditor Standard Edition v4 (jsdelivr fetches from npm, which send a "standard all" edition) comes with all non-community plugins deactivated and a "removeButtons" setting (undocumented which buttons are removed by default). But things like text align require plugins to be activated respectively
Subscript
orSuperscript
require certain buttons to be set to visible.Along with this PR comes a new chapter "customize" in the Aimeos "Admin/JQAdm backend" documentation.