Opened 10 years ago
Last modified 10 years ago
#12576 confirmed Task
Widget Tutorials - custom toolbars — at Initial Version
Reported by: | Brett Gardner | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Documentation & Samples | Version: | |
Keywords: | Cc: |
Description
The tutorials for adding custom widgets do not mention using them with custom tool bars
eg if you add a widget with
editor.widgets.add('foo', {
allowedContent:'span[foo]'
,button:'Add foo' });
config = {
extraPlugins='foo'
,toolbar_Test=Source','foo? .toolbar='Test'
}
Then the 'Foo' plugin will NOT appear on the toolbar also any 'foo' attributes will be stripped from spans
I have discovered, after a great deal of lost time that the command is auto generated from the widget name by uppercasing the first letter and lowercasing the rest
eg changing the toolbar definition to