Convert HTML Custom Tag to Div Tag

Release 2.9.0 and above.

Convert Custom Tag to Div Tag

Setting customTagToDiv to true converts custom tags to div tags when loading HTML. (default: false)

// synapeditor.config.js
'editor.buildOption.html': {
    'customTagToDiv': false
},
SettingResultExample
customTagToDiv: trueCustom tags are converted to div tags when loading HTML.See customTagToDiv: true below.
customTagToDiv: falseCustom tags are kept as-is when loading HTML.See customTagToDiv: false below.

customTagToDiv: true

<div class="se-div">
    <p style="margin: 0px;"><span>synap-custom test</span></p>
</div>

customTagToDiv true

customTagToDiv: false

<div class="se-para-div" style="margin: 0px;">
    <synap-custom>synap-custom test</synap-custom>
</div>

customTagToDiv false