grapesjs-plugin-ckeditor
grapesjs-plugin-ckeditor copied to clipboard
Components (link, paragraph) are recognized by GrapesJS in imported (setComponents) content
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