Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pety-dc opened this issue Mar 27, 2023 · 0 comments

Comments

@pety-dc
Copy link

pety-dc commented Mar 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant