Skip to content

有序列表/无序列表的字段行设置居中/居右样式,使用toHTML保存回填样式失效 #987

@xlj0516

Description

@xlj0516

将有序列表/无序列表的字段行设置居中/居右样式,使用toHTML()方法生成如下图结果提交到后端,li标签存在style="text-align:right"的样式;但是通过BraftEditor.createEditorState(htmlContext)回填时,列表的居右的样式不生效,查看到li标签不存在bfa-righ等class,样式失效,
使用toRAW()保存能正确回填

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions