red-axe / am-editor

A rich text editor that supports collaborative editing and allows for the free use of front-end common libraries such as React and Vue to extend and define plugins.
https://editor.aomao.com
MIT License
937 stars 197 forks source link

如何关闭schema 的规则,如今的schema 会干掉许多默认的样式,配置了schema 规则也木有效果,还是会干掉好多自己的样式 #293

Closed frontend-qin closed 1 year ago

frontend-qin commented 1 year ago

image image

big-camel commented 1 year ago

@aomao/engine@2.9.62 增加了 isMerge 参数,schema.add(rule, true) 这样就可以合并到现有规则了

lj520github commented 1 year ago

@aomao/engine@2.9.62 增加了 isMerge 参数,schema.add(rule, true) 这样就可以合并到现有规则了

更新了版本后,没有看到add(rule,true)的重载方法。我看源码里面并没有增加这个方法

big-camel commented 1 year ago

@aomao/engine@2.9.62 增加了 isMerge 参数,schema.add(rule, true) 这样就可以合并到现有规则了

更新了版本后,没有看到add(rule,true)的重载方法。我看源码里面并没有增加这个方法

参数是有的,但是SchemaInterface上面的类型漏了,下一个版本会补上~