Opened 4 years ago

Last modified 4 years ago

#11108 confirmed Task

Widget's documentation : data object

Reported by: Franck Valentin Owned by:
Priority: Normal Milestone:
Component: Documentation & Samples Version:
Keywords: Cc:

Description

In the widget's documentation (http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget) the field 'data' is described as a readonly object that can only be set by using the setData method but in the tutorial (the simplebox widget) is is described as a function executed every time the widget data is changed.

Change History (2)

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

Status: newconfirmed
Type: BugTask

You confused widget#data property with widget.definition#data. The first is an object, the second can be set to a function which will be executed each time data change.

I understand that this can be confusing, so I'll take look if we can clarify this more in the widgets guide.

comment:2 Changed 4 years ago by Franck Valentin

ok, sorry about that. Thanks for the clarification!

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