You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When call updateContents() to insert an embed into the middle of a line, the inserted embed inherits the formats of the target position. If the insertion is a text, it won't inherit any formats.
Steps for Reproduction
The following test case fails:
it('updateContents() insert text to the middle of formatted content',function(){constdelta=newDelta().retain(5).insert({image: '/assets/favicon.png'});this.quill.updateContents(delta);expect(this.quill.root).toEqualHTML('<p>0123<em>4</em><img src="/assets/favicon.png"><em>5</em>67</p>',);});
When call
updateContents()
to insert an embed into the middle of a line, the inserted embed inherits the formats of the target position. If the insertion is a text, it won't inherit any formats.Steps for Reproduction
The following test case fails:
Expected behavior:
<p>0123<em>4</em><img src="/assets/favicon.png"><em>5</em>67</p>
Actual behavior:
<p>0123<em>4<img src="/assets/favicon.png">5</em>67</p>
Platforms:
Chrome v103.
Version:
2.0.0-dev.4
The text was updated successfully, but these errors were encountered: