How To Fetch Text From a File and Put it in Quilljs?
F
Thefakeone
Verified
Hello, I'm trying to program a simple wordprocessor with Quilljs, and right now I'm running into issues with trying to load text from files and input them into the quilljs editor.
Quilljs has this function:
And I want to use either javascript or html to open a filepicker, open a file, and fetch the text from that file and send it to that function. How would I do that?
Quilljs has this function:
quill.setText(text: string, source: string = 'api'): DeltaAnd I want to use either javascript or html to open a filepicker, open a file, and fetch the text from that file and send it to that function. How would I do that?
