Version 2.0

What it does

This plugin adds the XML view panel to Xeditor. It will display the plain XML of your current element. It is in sync with the document, so all changes you perform will be appear in real time in the XML panel.

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

Configuration

The demo configuration of the plugin looks like this:

{
    pluginId: 'xmlview',
    ptype: 'uxxeditorxmlview'
}

API

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

Changelog

v2.0.3

Bugfixes

  • Disabled animation of panel collapse since this caused removal of frame content in some cases

v2.0.2

Bugfixes

  • Improved synchronisation on XML view and selection within the content

v2.0.1

Bugfixes

  • Fixed issue that caused document content to be invisible after panel was collapsed

v2.0.0

Changes

  • Changed default of alwaysShowRequiredAttributes to false since in gerneral you want to see the real xml behind the element.
  • Adjusted handling of attributes to new attribute handling, resulting in attributes with value null to exist. Now, only populated attributes will be displayed, even if set to and empty value (e.g. empty string)-
  • Added support for new text length cache class
  • Adapted usages of updated method getNodeTextOffset and removed any insertSpaceAfter-logic as no more spaces are added automatically and therefore the methods result changed and space after logic became unnecessary