Opened 5 years ago

Last modified 5 years ago

#12576 confirmed Task

Widget Tutorials - custom toolbars

Reported by: Brett Gardner Owned by:
Priority: Normal Milestone:
Component: Documentation & Samples Version:
Keywords: Cc:

Description (last modified by Piotrek Koszuliński)

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

[['Source','Foo']]

Attachments (1)

broken-widget.html (1.2 KB) - added by Brett Gardner 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Brett Gardner

Attachment: broken-widget.html added

comment:1 Changed 5 years ago by Piotrek Koszuliński

Description: modified (diff)

comment:2 Changed 5 years ago by Piotrek Koszuliński

Description: modified (diff)

comment:3 Changed 5 years ago by Piotrek Koszuliński

Status: newconfirmed

It makes sense to mention that. Thanks for reporting.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy