Version 5.5
Updating from version 5.4
- install new version using npm
npm install --registry https://npm.xeditor.com:4873
API
The API can be found here: Xeditor 5.5
Important changes in this version
- Introduces new button types for reformatting elements. They will change the current format to defined target format in a word similar way
Changelog
v5.5.0
Changes
- Added
EventManager.handleInsertElement
wich is used byEventManager.onInsertButtonClick
- Added
EventManager.handleConvertElement
wich is used byEventManager.onConvertButtonClick
andEventManager.onConvertOnInsertButtonClick
- Added
Document.wrapElements
to wrap elements with types provided. This is now used bywrapSelection
- Added
Document.convertElements
to convert elements using configuration provided into a target element type - Added Events
beforeconvertelements
andconvertelements
wich are fired by the document onconvertElements
execution - Added new core button types
xeditor.convert
andxeditor.convertOrInsert
wich can be used in the toolbar - Added click listener for convert type buttons to event manager
- Ajusted core update toolbar state logic to properly switch state of conversion toolbar buttons
- Added configuration flag
contextMenuItemSelectionToRoot
. If set to false, the element entries in the context menu will be reversed, meaning the root elemnt will be the first entry and the selected element the last - Added resize listener to body element in order to adjust selection when window size changed
Bugfixes
- Bugfix to show context menu on tags and other non element types
- Bugfix to only fix the state for changed elements in insertElements
- Fixed issue that comment selection lost after undo
- Fixed issue in IE that caused the selection to jump to previous parts of the current container while typing
- Fixed issue in IE that caused the selection being randomly set as a range on the next few characters while typing fast
- Changed nonInputKeys Array because KeyCode is not the same in Firefox and Chrome
- Fixed issue in Find/Replace-Dialog that prevented the selected text to be added to the search field automatically