quill
quill copied to clipboard
Text is messed up when editing code-block and patching previous value again.
In some circunstances quill is let code-block strip another tags:
Steps for Reproduction
- Visit https://codepen.io/augustobreno/pen/MWjrLaj
- Click in button "Patch" to start quill with content;
- Edit code-block by adding any caractere;
- Click button "Patch" again to restaure initial text
- See that code-block mess up all text, stripping another tags.
Expected behavior: Text content do not mess up, but keep format defined in patch operation.
Actual behavior: HTML DOM is messed up by code-block taking place of onother tags.
Platforms: Chrome, Firefox
Version: 1.3.7
Facing the same problem. I think because they are not being wrap under code tag.
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray: