Version 3.0

What it does

This plugin can be used for indenting/outdenting configured list item elements.

Installation

First you have to switch into your project location using the command line.

cd path/to/your/project

Then you can install the plugin as follows:

npm install @xeditor/plugin-listfeatures --save --registry https://npm.xeditor.com:4873

Configuration

The demo configuration of the plugin looks like this:

{
    pluginId: 'listfeatures',
    ptype: 'uxxeditorlistfeatures',
    paragraphType: 'p',
    enableContextMenu: true,
    lists: [{
        listType: 'list_ordered',
        itemType: 'list_item'
    }, {
        listType: 'list_unordered',
        itemType: 'list_item'
    }]
}

This results into the following: - when element list_item within list_ordered or list_unordered is selected, the indent and outdent button will be enabled (if possible, outdent is not enabled if element is already on first level) - as enableContextMenu config is set to true, also corresponding entries will be added to the context menu - triggering the action will indent/outdent the list_item element

Updating from v2.0

In order to update the listfeatures plugin from version 1.0 to version 2.0, proceed as follows:

Install new Plugin

  • Open file package.json
  • Locate the listfeatures plugin contained by dependencies
  • Adjust version number: use '~3' instead of currently contained one
  • Run npm install --registry https://npm.xeditor.com:4873

API

The API for the plugin can be found here: listfeatures plugin API

Changelog

v3.0.0

Major Changes

  • Changed toolbarType to type
  • Canged properties from -ToolbarType to -ButtonType
  • Adapted usages of updated method getPlainTextLength as no more spaces are added automatically and therefore the result has changed