Document Controller:: insertHtml
Posted: Thu Nov 19, 2020 11:38 pm
I noticed internally Oxygen uses a method named `insertHtml` that accepts HTML and converts it appropriate language element before insert it into document.
For example running the code below in a DITA document automatically inserts <image href="..."/> where as on a DocBook it inserts imageobject which seems very convenient.
Is there a documentation that reveals the HTML equivalent for every language element?
For example running the code below in a DITA document automatically inserts <image href="..."/> where as on a DocBook it inserts imageobject which seems very convenient.
Code: Select all
workspace.currentEditor.getController().insertHtml(`<img src="path" />`)