Opened 10 years ago
Last modified 10 years ago
#12576 confirmed Task
Widget Tutorials - custom toolbars — at Version 1
Reported by: | Brett Gardner | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Documentation & Samples | Version: | |
Keywords: | Cc: |
Description (last modified by )
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
Change History (2)
Changed 10 years ago by
Attachment: | broken-widget.html added |
---|
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|