custom-pages icon indicating copy to clipboard operation
custom-pages copied to clipboard

Custom "style" attributes removed

Open luke- opened this issue 4 years ago • 2 comments

When change the style attributes of a RichText Field directly in the source code view they are removed.

luke- avatar Sep 28 '20 13:09 luke-

Steps to reproduce?

buddh4 avatar Sep 28 '20 16:09 buddh4

To reproduce:

  • Open a Richtext Element (HTML)
  • Switch to HTML/Sourcecode View
  • Add a Table in Source

e.g.

<table class="table table-striped">
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">First</th>
      <th scope="col">Last</th>
      <th scope="col">Handle</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th>
      <td>Mark</td>
      <td>Otto</td>
      <td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
      <td>@fat</td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <td>Larry</td>
      <td>the Bird</td>
      <td>@twitter</td>
    </tr>
  </tbody>
</table>
  • Save
  • Anything works as expected
  • Now, when you open the Element in Editor, all custom attributes are removed

luke- avatar Sep 29 '20 14:09 luke-