Skip to content

Superfluous HTML changes when using setValue #262

@wongk

Description

@wongk

Describe the bug
onChangeHtml is called with the following "empty" HTML when setValue is called on the editor:

 <html>
<p></p>
</html>

The callback is subsequently called with the passed value. Meaning, the callback is called twice in a row.

To Reproduce
Steps to reproduce the behavior:
You need to implement some action that calls setValue on the editor. In my case, I am attempting to implement undo and redo, but this is complicating the matter. If you simply log calls to the callback, you will see it is called twice.

Expected behavior
The callback is not called erroneously.

Device (please complete the following information):

  • Device: iPhone 16 Pro simulator
  • OS: iOS 18.5
  • Version: 0.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions