compact

defines whether the editor is rendered in the compact mode

boolean compact;

Example

webix.ui({
    view: "editor",
    value: "<p>Hello World!</p>",
    compact: true
});

Details

By default the editor switches to the compact mode when its size is less than or equal to compactWidth. This can happen on initialization or when the widget or viewport is resized. To set the compact mode initially, use the compact property of the constructor as in the example above.

See also
Back to top