define("editor/assert/js/plugins/textfeild",["editor/assert/js/utils/textfiledstyle","editor/assert/js/utils/commands","share/assert/js/ioutil_desktop","share/assert/js/template.js","share/assert/js/appcontext","share/assert/js/path","editor/assert/js/addon/appUtil","editor/assert/js/addon/logManager"],function(require,exports){var a=require("editor/assert/js/utils/textfiledstyle").instance,b=require("editor/assert/js/utils/commands")._$comm,c=function(){this.canvas=null,this.dom=null};c.prototype.addElemet=function(a){if(!PAGECURRENT)throw new Error("no page");a?(this.dom=a,PAGECURRENT.c.activeObject=this,this.dom.baseClass=this,this.canvas=PAGECURRENT.c._canvas,this.showProperty()):(this.dom=new fabric.TextFeild("请输入内容",{left:100,top:100}),PAGECURRENT.c.activeObject=this,this.dom.baseClass=this,this.canvas=PAGECURRENT.c._canvas,PAGECURRENT.c.add(this.dom))},a&&b._extend(c,a),exports.instance=c});