Commit ff4081a2 authored by Oleg Korshul's avatar Oleg Korshul

reader mode & presentation copy/paste new scheme

parent dc7312fa
This diff is collapsed.
......@@ -46,8 +46,6 @@ var changestype_Paragraph_Content = AscCommon.changestype_Paragraph_Content;
var changestype_2_Element_and_Type = AscCommon.changestype_2_Element_and_Type;
var changestype_2_ElementsArray_and_Type = AscCommon.changestype_2_ElementsArray_and_Type;
var g_oTableId = AscCommon.g_oTableId;
var Editor_Copy = AscCommon.Editor_Copy;
var Editor_Paste = AscCommon.Editor_Paste;
var History = AscCommon.History;
var c_oAscHAnchor = Asc.c_oAscHAnchor;
......
......@@ -753,14 +753,17 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.ContentToHTML = function(bIsRet)
{
this.DocumentReaderMode = new AscCommon.CDocumentReaderMode();
var _old = PasteElementsId.copyPasteUseBinary;
PasteElementsId.copyPasteUseBinary = false;
this.WordControl.m_oLogicDocument.Select_All();
AscCommon.Editor_Copy(this);
var text_data = {
data : "",
pushData : function(format, value) { this.data = value; }
};
this.asc_CheckCopy(text_data, 2);
this.WordControl.m_oLogicDocument.Selection_Remove();
PasteElementsId.copyPasteUseBinary = _old;
this.DocumentReaderMode = null;
return document.getElementById("SelectId").innerHTML;
return text_data.data;
};
asc_docs_api.prototype.InitEditor = function()
......
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