Trumbowyg: Editor still be disabled

Created on 6 Jul 2016  ·  2Comments  ·  Source: Alex-D/Trumbowyg

Thanks for editor.

I have textarea with attribute «disabled».
<textarea data-richeditor="1" disabled>Foo bar</textarea>
Then I initialize plugin.
$('[data-richeditor="1"]').trumbowyg();
Then I remove attribute «disabled» by jQuery, but editor still be disabled.
$('[data-richeditor="1"]').removeAttr('disabled');

disabled

question

All 2 comments

@mishantrop уважайте других пользователей гитхаба! Здесь не только англоязычная аудитория и ваш скриншот выглядит глупо!
По вашему вопросу достаточно прочитать документацию http://alex-d.github.io/Trumbowyg/documentation.html#enable-disable-edition

@mishantrop respect other users from Github! Here, not only English-speaking audience and your screenshot, with curse words, looks stupid!
In your question to read the documentation is sufficient http://alex-d.github.io/Trumbowyg/documentation.html#enable-disable-edition

Thanks @Globulopolis for the response :)
And yeah, jQuery is not double binding tool, so you need to call the enable/disable in the Trumbowyg API ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mgjunk picture mgjunk  ·  4Comments

dmorrison-olive picture dmorrison-olive  ·  3Comments

tonvanalebeek picture tonvanalebeek  ·  6Comments

mur-wtag picture mur-wtag  ·  3Comments

Jeong-YeongMin picture Jeong-YeongMin  ·  5Comments