I've started a project using Angular 4, together with Material Design. In the project I would like to use TinyMce 4 to be able to write "news".
I have tried to follow this example https://www.tinymce.com/docs/demo/file-picker/ but gets a error on line reading
const file = this.files[0];
The error looks like:
Property 'files' does not exist on type 'HTMLElement'
I am new to javascript so I really would appreciate some help.
//lg
Finally found the problem.
const file = this.files[0];
should be
const file = input.files[0];
I don't know why it works in the example mentioned above,, but this change made it for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.