Content block ability to use html attributes and to nest elements



Publicado 09 de fev. de 2023

It's great that we have the content block feature to support single-use content. However, it's annoying that you can't use the content block editor much like the articles editor, nest HTML elements, and apply HTML attributes.

Some examples of the things that get removed from content blocks after I save. (In some circumstances, there's no warning. It just deletes the code!)

<h2><a id="title">TITLE</a></h2>: RESULT AFTER SAVING: <h2>TITLE</h2>

Can't use classes on anything other than divs.

<p class="tip">Use this tip.</p>: RESULT AFTER SAVING: <p>Use this tip.</p>

Ordinary procedure with a div as a note to highlight the step:

<ol>
<li>You must do this action.
<div class="caution">
<ul>
<li>Caution! Make sure you...
</li>
</ul>
</div>
</li>
<li>Then you do this.
</li>
</ol>

Results in list being slipt out so number is started again:

<ol>
<li>You must do this action.
</li>
</ol>
<div class="caution">
<ul>
<li>Caution! Make sure you...
</li>
</ul>
</div>
<ol>
<li>Then you do this.
</li>
</ol>

Example with the div outside of the list item

<ol>
<li>You must do this action.
</li>
<li>Then you do this.
</li>
<div class="caution">
<ul>
<li>Caution! Make sure you...
</li>
</ul>
</div>
</ol>

Just deletes the last div, no warning:

<ol>
<li>You must do this action.
</li>
<li>Then you do this.
</li>
</ol>


5

7

0 comentários

Entrar para deixar um comentário.

Não encontrou o que estava procurando?

Nova publicação