Verify an extension
Check the command, HTML round trip, JSON, and undo before using a new extension in your app.
Check the extension
- In the inline-format example, select Friday and click Highlight. Check that the HTML includes
<mark>Friday</mark>. - Call
editor.history.undo()and check that the original text returns. Apply the highlight again witheditor.history.redo(). - Read the HTML with
getHTML(), then load it withsetHTML()in an editor with the same extension list. Check that the<mark>tag and thehighlighttype ingetJSON()survive. For an extension with attributes, check their values too.