Improved selection of content editable file.
This commit is contained in:
parent
ce7d2e22f8
commit
e845347956
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ class App.WidgetTextModule extends App.Controller
|
||||||
if @selector
|
if @selector
|
||||||
@bindElements = @$( @selector ).textmodule()
|
@bindElements = @$( @selector ).textmodule()
|
||||||
else
|
else
|
||||||
@bindElements = @$('[contenteditable]').textmodule()
|
if @el.attr('contenteditable')
|
||||||
|
@bindElements = @el.textmodule()
|
||||||
|
else
|
||||||
|
@bindElements = @$('[contenteditable]').textmodule()
|
||||||
@update()
|
@update()
|
||||||
|
|
||||||
@subscribeId = App.TextModule.subscribe(@update, initFetch: true )
|
@subscribeId = App.TextModule.subscribe(@update, initFetch: true )
|
||||||
|
|
Loading…
Reference in a new issue