【问题标题】:Ace editor with Vim mode and Emmet enabled启用 Vim 模式和 Emmet 的 Ace 编辑器
【发布时间】:2014-04-11 07:28:21
【问题描述】:

我正在尝试使用带有 Vim 键绑定和 Emmet 的 ace 编辑器来进行 html 编辑。

似乎在使用 Vim 模式时,emmet 扩展被禁用了。

这里有一个fiddle 揭露了这个问题。

ace.require("ace/ext/emmet");

var editor = ace.edit("editor");
editor.setKeyboardHandler('ace/keyboard/vim');
editor.getSession().setMode("ace/mode/html");
editor.setOption("enableEmmet", true);

任何人都知道这是预期的行为还是我遗漏了什么?

【问题讨论】:

    标签: vim ace-editor emmet


    【解决方案1】:

    使用editor.setOption("enableEmmet", true);以上设置模式

    【讨论】:

      猜你喜欢
      • 2014-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多