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
},
| Setting | Result | Example |
|---|---|---|
customTagToDiv: true | Custom tags are converted to div tags when loading HTML. | See customTagToDiv: true below. |
customTagToDiv: false | Custom 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: false
<div class="se-para-div" style="margin: 0px;">
<synap-custom>synap-custom test</synap-custom>
</div>