Skip to content
Discussion options

You must be logged in to vote

You have to store the original model before is updated

editor.Components.getTypes().map(type => {
  const originalModel = type.model;

  editor.Components.addType(type.id, {
     // ...
     return originalModel.prototype.toHTML.apply(this);
    // ...
  })
})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@thenovacreator
Comment options

@artf
Comment options

artf Feb 10, 2023
Maintainer

@thenovacreator
Comment options

Answer selected by thenovacreator
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants