Cerealkillerway / materialNote

Summernote wysiwyg editor converted for Materialize
MIT License
109 stars 44 forks source link

Support enable/disable #19

Open diegonc opened 8 years ago

diegonc commented 8 years ago

Using summernote one can disable any input to an editor by executing the disable method like below.

$(".editor").summernote("disable")

Which also makes the editor look grey and all toolbar buttons are disabled.

image

I tried to do the same in materialnote but it does nothing.

> $(".editor").materialnote("disable")
undefined

Using disable as a function (just like code) doesn't work either.

> $(".editor").disable()
VM1931:1 Uncaught TypeError: $(...).disable is not a function(…)