I'm trying to use SuperTextarea from flarum/utils/SuperTextarea
but it keeps telling me that's not a constructor. I also tried to import it from flarum/components/SuperTextarea
(docs) nothing changes ;/
Code
import SuperTextarea from 'flarum/utils/SuperTextarea';
extend(TextEditor.prototype, 'oncreate', function() {
console.log(new SuperTextarea(this.$('textarea')[0]));
});
EDIT: i can import and use Stream, but not SuperTextarea