CarterLi / vue3-ace-editor

Like vue2-ace-editor but more functional and supports Vue 3
MIT License
182 stars 24 forks source link

feat: highlightActiveLine, highlightGutterLine, and cursor display ba… #40

Closed notfound945 closed 1 year ago

notfound945 commented 1 year ago

Readonly 状态下,隐藏输入光标、取消光标行高亮;使 Readonly 更 Readonly

CarterLi commented 1 year ago

vue3-ace-editor 仅仅是 ace 的直接绑定,我不想变更 ace 的内部行为。vue3-ace-editor 直接使用 ace 的默认行为没有任何错误,如果有人不喜欢你可以说 ace 就是这样的,然后你也可以很简单的在外部用其他属性配置。但是如果你偷偷改了人家的行为,这个如果有人不喜欢就很难讲。更何况很有可能现在已经有人通过配置给 readonly 添加了其他行为,你这样直接改 option 说不准会和用户的自定义行为冲突。

CarterLi commented 1 year ago

如果你想把highlightActiveLine这些加到vue3-ace-editor的option里那没有问题

notfound945 commented 1 year ago

了解,您说的很有道理 👍