example code for insertImage
this used to work to get the editor
var editor = $.summernote.eventHandler.getModule();
But after update summer note to version 0.7.1 its broken.
The correct way to get the editor object, I got the object but can't use this functions with it insertImage(editable, url)
Thanks!
try this instead
$scope.editor.summernote('editor.insertImage', url);
Did you see https://github.com/summernote/angular-summernote#event-listeners?
@Cabeza thanks! its working fine now!
@outsideris Yes, I did. But didn't know how to implement it. I inspected the $scope.editor object and indeed the editor was there, but couldn't find a way to call insertImage.
Would be nice if there is an example code in the documentation. I searched on Google & SO and saw many wrong answers around.
@simonlinj I got it.
@Cabeza many thanks
@Cabeza i love, it work for me, after many hours searching a example