Set content to aloha editable?

122 views Asked by At

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

1

There are 1 answers

3
Milche Patern On

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.