Skip to content

Version 1.1

What it does

This plugin offers a panel containing all elements that can be inserted before/into/after the currently selected element. If the plugin is used, it will build the panel and add it to the accordion. It's also possible to build the panel separately and add it to custom components without using the default editor accordion.

Installation

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

cd path/to/your/project

Now you should be in the same directory as the package.json file. Then you can install the plugin as follows:

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

Configuration

The demo configuration of the plugin looks like this:

{
    pluginId: 'listinsertelements',
    ptype: 'uxxeditorlistinsertelements'
}

API

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

Changelog

v1.1.0

Changes

  • Added collapse/expand listeners in order to handle pausePanel flag properly, which is used to stop updating of panel when it's currently collapsed
  • Changed phrases for insert before/into/after element

Bugfixes

  • Fixed bug causing element to be inserted at wrong position when inserting element before/after elements in whicht target element was also valid