diff --git a/app/assets/javascripts/app/controllers/widget/text_module.js.coffee b/app/assets/javascripts/app/controllers/widget/text_module.js.coffee index e3d8560f3..f2e16cc3e 100644 --- a/app/assets/javascripts/app/controllers/widget/text_module.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/text_module.js.coffee @@ -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 )