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

@ -7,7 +7,10 @@ class App.WidgetTextModule extends App.Controller
if @selector
@bindElements = @$( @selector ).textmodule()
else
@bindElements = @$('[contenteditable]').textmodule()
if @el.attr('contenteditable')
@bindElements = @el.textmodule()
else
@bindElements = @$('[contenteditable]').textmodule()
@update()
@subscribeId = App.TextModule.subscribe(@update, initFetch: true )