Closed freak111 closed 4 years ago
same happening to me
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'); } },
The issue has been resolved.
fabric.js?7a94:25472 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined at klass.getFontCache