Preserve HTML display:none Nodes
Release 2.15.2211 and above.
Used to preserve display: none; processed nodes when loading HTML or when copying and pasting.
How to Configure
Setting remainNoneNode in editor.buildOption.html to true preserves display:none nodes.
Setting remainNoneNode in editor.buildOption.html to false removes display:none nodes. (default: false)
// synapeditor.config.js
{
'editor.buildOption.html': {
'remainNoneNode': true
}
}
<table>
<thead>
<tr><th><code>remainNoneNode: true</code></th><th><code>remainNoneNode: false</code></th></tr>
</thead>
<tbody>
<tr>
<td>