lionix-team / vue-image-markup

vue-image-markup will provide you to edit uploaded image easily and save it.
https://image-markup.lionix-team.com
96 stars 44 forks source link

text issue in tool #8

Closed freak111 closed 4 years ago

freak111 commented 4 years ago

fabric.js?7a94:25472 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined at klass.getFontCache Capture

giuseppemariniello commented 4 years ago

same happening to me

freak111 commented 4 years ago

I resolved it like that

setTool(type, params) { this.currentActiveMethod = type; console.log(type, params , this.$refs.editor); this.$refs.editor.set(type, {fontStyle: 'italic' , fontFamily: 'Arial' , fontSize : '22' , fontWeight : '12' }); if(type == 'text'){ // this.$refs.editor.addText('addText'); } },

lilitsimonyan98 commented 4 years ago

The issue has been resolved.