Commit 66199d74 authored by Oleg Korshul's avatar Oleg Korshul

api copy flag

parent 618c85f9
......@@ -292,6 +292,10 @@
_ret = false;
return _ret;
};
baseEditorsApi.prototype.isCopyOutEnabled = function()
{
return true;
};
// target pos
baseEditorsApi.prototype.asc_LockTargetUpdate = function(isLock)
{
......
......@@ -655,11 +655,15 @@
ElemToSelect.style["-o-user-select"] = "text";
ElemToSelect.style["user-select"] = "text";
ElemToSelect.style["-webkit-user-select"] = "text";
ElemToSelect.setAttribute("contentEditable", true);
ElemToSelect.setAttribute("contentEditable", this.isCopyOutEnabled());
var _parent = ("" == this.CommonDivIdParent) ? document.body : document.getElementById(this.CommonDivIdParent);
_parent.appendChild(ElemToSelect);
}
else
{
ElemToSelect.setAttribute("contentEditable", this.isCopyOutEnabled());
}
return ElemToSelect;
},
......@@ -869,7 +873,7 @@
break;
}
if (_data_format != "" && _data !== null)
if (_data_format != "" && _data !== null && this.isCopyOutEnabled())
{
if (_data_format == "text/x-custom")
this.ClosureParams.setData(_data_format, "asc_internalData;" + _data);
......@@ -1141,6 +1145,13 @@
}
return res;
},
isCopyOutEnabled : function()
{
if (this.Api && this.Api.isCopyOutEnabled)
return this.Api.isCopyOutEnabled();
return true;
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment