quill icon indicating copy to clipboard operation
quill copied to clipboard

Text is messed up when editing code-block and patching previous value again.

Open augustobreno opened this issue 5 years ago • 2 comments

In some circunstances quill is let code-block strip another tags:

Steps for Reproduction

  1. Visit https://codepen.io/augustobreno/pen/MWjrLaj
  2. Click in button "Patch" to start quill with content;
  3. Edit code-block by adding any caractere;
  4. Click button "Patch" again to restaure initial text
  5. 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

augustobreno avatar Dec 29 '20 15:12 augustobreno

Facing the same problem. I think because they are not being wrap under code tag.

Uysim avatar Mar 09 '21 15:03 Uysim

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:

quill-bot avatar Apr 17 '24 10:04 quill-bot