Skip to content

Re-attaching the web component to DOM breaks editor. #5

Description

@mstahv

Steps to reproduce:

  1. Go to https://codepen.io/tinymce/pen/oNLbGwP
  2. Type some text and apply formatting
  3. Select tinymce-editor in the element inspector
  4. Store it in global variable, then remove and add back:
const ed = $0;
document.body.removeChild($0);
document.body.appendChild(ed);

Now the editor is back but the content is not editable and old content is lost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions