2013-12-16 88 views
0

我将内容设置为aloha可编辑,但我收到一条错误消息,指出“Aloha.activeEditable为null”。任何人都可以告诉我如何解决这个问题?将内容设置为aloha可编辑?

Aloha.activeEditable.setContents('', true); 

错误:错误类型:Aloha.activeEditable是空

回答

1

来源:https://github.com/alohaeditor/Aloha-Editor/pull/642

的问题是,有没有活动的编辑时,属性 改变在第一时间(阿罗哈.activeEditable为null)。

API发生了变化。被用户deliminator修复为bf4033b。请更新 您的代码。

+0

感谢您的回复..如何更新我的代码? – Krish

+0

关于“如何”将是另一个问题“如何更新阿罗哈可编辑编码”。关于'where':https://github.com/alohaeditor/Aloha-Editor –

+0

你能告诉我如何更新editable.js吗? – Krish