appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[Bug] htmlToDocument

Open springlo opened this issue 11 months ago • 0 comments

Bug Description

Bold tag error

How to Reproduce

html like this:

<h1>AppFlowyEditor</h1>
<b>Bold tag</b>
<p>You can also use</p>
<strong><em>AppFlowy Editor</em></strong> 

final html = htmlToDocument(htmlString); then print(html.toJson()):

flutter: {document: {type: page, children: [{type: heading, data: {delta: [{insert: AppFlowyEditor}], level: 1}}, {type: paragraph, data: {delta: [{insert: Bold tag, attributes: {bold: true}}]}}, {type: paragraph, data: {delta: [{insert: You can also use}]}}, {type: paragraph, data: {delta: [{insert: Bold tag, attributes: {bold: true}}, {insert: AppFlowy Editor, attributes: {bold: true, italic: true}}]}}]}}

Expected Behavior

rt

Operating System

iOS

AppFlowy Editor Version(s)

Master

Screenshots

No response

Additional Context

No response

springlo avatar Dec 27 '24 04:12 springlo