Report an issue


class inherited

The definition of a text field (multiple lines).

This class is not really part of the API. It just illustrates the properties that developers can use to define and create textarea.

Once the dialog is opened, the created element becomes a CKEDITOR.ui.dialog.textarea object and can be accessed with CKEDITOR.dialog.getContentElement.

For a complete example of dialog definition, please check CKEDITOR.dialog.add.

    // There is no constructor for this class, the user just has to define an
    // object with the appropriate properties.

    // Example:
        type: 'textarea',
        id: 'message',
        label: 'Your comment',
        'default': '',
        validate: function() {
            if ( this.getValue().length < 5 ) {
                api.openMsgDialog( 'The comment is too short.' );
                return false;