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 = []
|
||||
if @selector
|
||||
@bindElements = @$( @selector ).textmodule()
|
||||
else
|
||||
if @el.attr('contenteditable')
|
||||
@bindElements = @el.textmodule()
|
||||
else
|
||||
@bindElements = @$('[contenteditable]').textmodule()
|
||||
@update()
|
||||
|
|
Loading…
Reference in a new issue