ckeditor/ckeditor5-engine

View on GitHub
docs/_snippets/framework/extending-content-custom-figure-attributes.html

Summary

Maintainability
Test Coverage
<head>
    <style>
        .ck-content figure.table-foo table,
        .ck-content figure.img-foo {
            border: 2px solid deeppink;
        }
    </style>
</head>

<div id="snippet-custom-figure-attributes">
    <h2>Image:</h2>
    <figure class="image">
        <img alt="bar" class="img-foo" id="img-foo-1" src="%BASE_PATH%/assets/img/fields.jpg">
        <figcaption>Caption</figcaption>
    </figure>

    <h2>Table:</h2>
    <table class="table-foo" id="table-foo-1" >
        <tr>
            <td>foo</td>
        </tr>
    </table>
</div>