Improved selection of content editable file.

This commit is contained in:
Martin Edenhofer 2014-10-02 18:08:08 +02:00
parent ce7d2e22f8
commit e845347956

View file

@ -6,6 +6,9 @@ class App.WidgetTextModule extends App.Controller
@bindElements = [] @bindElements = []
if @selector if @selector
@bindElements = @$( @selector ).textmodule() @bindElements = @$( @selector ).textmodule()
else
if @el.attr('contenteditable')
@bindElements = @el.textmodule()
else else
@bindElements = @$('[contenteditable]').textmodule() @bindElements = @$('[contenteditable]').textmodule()
@update() @update()