grapesjs-plugin-ckeditor icon indicating copy to clipboard operation
grapesjs-plugin-ckeditor copied to clipboard

Components (link, paragraph) are recognized by GrapesJS in imported (setComponents) content

Open pety-dc opened this issue 1 year ago • 0 comments

When a Text component is edited by CKeditor its' contents remain encapsulated. But if you import new content into the GrapesJS Editor (or use setComponents method) contents that should be encapsulated in a Text component, get identified by GrapesJS and is given id and other gjs- attributes.

Import this in the mjml demo:

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-text>Hello world​​​​​
          <br/>
        </mj-text>
      </mj-column>
      <mj-column>
        <mj-text>Hello 
          <a data-cke-saved-href="http://example.com" href="http://example.com">world </a>2​​​​​​
          <br/>
        </mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

This is how it looks like image

pety-dc avatar Mar 27 '23 16:03 pety-dc