Reputation: 308
I am setting a content to aloha editable but i am getting an error message saying that "Aloha.activeEditable is null". Can anybody please tell me how to solve this ??
Aloha.activeEditable.setContents('', true);
Error : Type error : Aloha.activeEditable is null
Upvotes: 0
Views: 115
Reputation: 20452
Source : https://github.com/alohaeditor/Aloha-Editor/pull/642
The problem is that there is no active editable when the attributes are changed the first time (Aloha.activeEditable is null).
There was an API change. Was fixed by user deliminator in bf4033b. Please update your code.
Upvotes: 1