fixing text editor dragging error

This commit is contained in:
Pablo Luna 2011-04-02 14:26:02 +01:00
parent 4b230abd65
commit ba9c6c5c81

View File

@ -326,6 +326,7 @@ mindplot.TextEditor.prototype.setPosition = function (x, y, scale)
mindplot.TextEditor.prototype.showTextEditor = function(selectText) mindplot.TextEditor.prototype.showTextEditor = function(selectText)
{ {
designer.getWorkSpace().enableWorkspaceEvents(false);
//this._myOverlay.show(); //this._myOverlay.show();
//var myAnim = new YAHOO.util.Anim('inputText',{opacity: {to:1}}, 0.10, YAHOO.util.Easing.easeOut); //var myAnim = new YAHOO.util.Anim('inputText',{opacity: {to:1}}, 0.10, YAHOO.util.Easing.easeOut);
//$('inputText').style.opacity='1'; //$('inputText').style.opacity='1';
@ -389,7 +390,6 @@ mindplot.TextEditor.prototype.lostFocus = function(bothBrowsers)
}; };
mindplot.TextEditor.prototype.clickEvent = function(event){ mindplot.TextEditor.prototype.clickEvent = function(event){
designer.getWorkSpace().enableWorkspaceEvents(false);
if(this._isVisible()){ if(this._isVisible()){
if (event.stopPropagation) if (event.stopPropagation)
{ {