ckeditor/ckeditor5-engine

View on GitHub
docs/_snippets/framework/extending-content-allow-div-attributes.html

Summary

Maintainability
Test Coverage
<div id="snippet-div-attributes">
    <div id="special-section-a" style="background: #eafbd7;padding:.8em .8em 0;margin-bottom:.8em;border:1px solid #8bc34a;">
        <p><strong>Special section A</strong>: It has set "style" and "id" attributes.</p>
    </div>

    <p>Regular content of the editor.</p>

    <div id="special-section-b" style="background: #ffeed0;padding:.8em .8em 0;margin-bottom:.8em;border:1px solid #ff8f00;" spellcheck="false">
        <p><strong>Special section B</strong>: It has set "style", "id" and spellcheck="false" attributes.</p>
        <p>This section disables the native browser spellchecker.</p>
    </div>
</div>