Report an issue
Class

CKEDITOR.plugins.balloontoolbar.contextDefinition

classabstract

This is an abstract class that describes the definition of a balloon toolbar context.

Note that context matching options have a different priority by default, see more details in CKEDITOR.plugins.balloontoolbar.contextManager.

Filtering

Properties

  • cssSelector : String | null

    A CSS selector. If any element in the path matches against it, the toolbar will be shown.

    Defaults to null

  • priority : Number

    A number based on CKEDITOR.plugins.balloontoolbar.PRIORITY.

    var defA = {
        buttons: 'Bold',
        refresh: function() { return true; }
    };
    
    // Even though the previous definition uses the refresh function, it will not take
    // priority over this definition, as it explicitly states the high priority.
    var defB = {
        buttons: 'NumberedList,BulletedList',
        cssSelector: 'li',
        priority: CKEDITOR.plugins.balloontoolbar.PRIORITY.HIGH
    };
    

    Defaults to CKEDITOR.plugins.balloontoolbar.PRIORITY.MEDIUM

  • widgets : String[] | String | null

    An array of widget names that should show the related toolbar. Alternatively it can be passed as a comma-separated string.

    Defaults to null

Methods