Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xlj0516 opened this issue Nov 6, 2024 · 0 comments

Comments

@xlj0516
Copy link

xlj0516 commented Nov 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant