froala / angular-froala

Angular.js bindings for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
306 stars 123 forks source link

Error when cutting content #114

Closed sedgey01 closed 8 years ago

sedgey01 commented 8 years ago

Running Chrome on mac and Froala 2.3.3, when you add text content, highlight and cut it then the selected content is copied into the clipboard but only text content is removed from the editor (i.e. images remain in place), and an error is produced: Cannot read property 'get' of null.

Clicking on an image (and seeing its resize handles) and cutting does not produce the error.

It is possible to replicate this issue on the Froala editor homepage content by selecting any content (including the image) and then pressing cut via cmd+x.