Skip to content

Version 1.0

What it does

This plugin is used to properly apply inline formats to the active selection.

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-inlineformat --save --registry https://npm.xeditor.com:4873

Configuration

The demo configuration of the plugin looks like this:

{
    pluginId: 'inlineformat',
    ptype: 'uxxeditorinlineformat',
    inlineFormatTypes: ['bold', 'italic', 'underline', 'subscript', 'superscript']
}

API

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

Buttons

This plugin exports the following button templates that can be used in your toolbar configuration:

Button Action
button:xeditor.inlineformat Applies defined element to current selection

Changelog

v1.0.4

Bugfixes

  • Bugfix for using inline elements with track changes

v1.0.3

Bugfixes

  • Bugfix for applyFormat that caused an error to be thrown if an empty format was created behind an other format.
  • Bugfix for applyFormat that caused to create nested formats of the same type (e.g. bold in bold) if the same format was wrapped around content that already contained that format

v1.0.2

Bugfixes

  • Bugfix for the button event listener to prevent the logic during text input

Changes

  • Added the .npmrc file with the xeditor npm repository and unsafe perm### v1.0.1
  • Bugfix for the inline format plugin to support reformatting of the same formats again

v1.0.0

  • Initial release