Improved selection of content editable file.
This commit is contained in:
parent
ce7d2e22f8
commit
e845347956
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue