0

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

Krish
  • 308
  • 3
  • 5
  • 19

1 Answers1

1

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.

Milche Patern
  • 19,632
  • 6
  • 35
  • 52
  • Thanks for your response..how and where do i update my code?? – Krish Dec 16 '13 at 05:22
  • About the 'how' that will be another question "How to update aloha editable coding". About the 'where' : https://github.com/alohaeditor/Aloha-Editor – Milche Patern Dec 16 '13 at 05:28
  • I won't be of much help about updating from a github repository, it's something documented on github site YOU will have to read, but you can find this answer helpfull. http://stackoverflow.com/questions/15264119/how-to-take-update-from-github-repository – Milche Patern Dec 16 '13 at 05:41