Commit 91685910 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

25690 Ошибка в консоли после добавления комментария к ссылке, вставленной в...

25690 Ошибка в консоли после добавления комментария к ссылке, вставленной в автофигуру, и перезагрузки страницы
25575 Теряется изображение при сохранении книги

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57510 954022d7-b5bf-4e40-9824-e11837661b57
parent f81a9865
...@@ -26,6 +26,36 @@ ...@@ -26,6 +26,36 @@
function checkRasterImageId(rasterImageId)
{
return rasterImageId;
if ( 0 !== rasterImageId.indexOf("http:") && 0 !== rasterImageId.indexOf("data:") && 0 !== rasterImageId.indexOf("https:") && 0 !== rasterImageId.indexOf("ftp:") && 0 !== rasterImageId.indexOf("file:") )
{
var api_sheet = window["Asc"]["editor"];
var sFindString;
if(api_sheet)
{
sFindString = api_sheet.wbModel.sUrlPath + "media/";
}
else
{
sFindString = window.editor.DocumentUrl + "media/";
}
if(0 === rasterImageId.indexOf(sFindString))
{
return rasterImageId.substring(sFindString.length);
}
else
{
return rasterImageId;
}
}
else
{
return rasterImageId;
}
}
var historyitem_ChangeColorScheme = 0; var historyitem_ChangeColorScheme = 0;
var historyitem_ChangeFontScheme = 1; var historyitem_ChangeFontScheme = 1;
var historyitem_ChangeFmtScheme = 2; var historyitem_ChangeFmtScheme = 2;
...@@ -2430,7 +2460,7 @@ CBlipFill.prototype = ...@@ -2430,7 +2460,7 @@ CBlipFill.prototype =
setRasterImageId: function(rasterImageId) setRasterImageId: function(rasterImageId)
{ {
//History.Add(this, {Type: historyitem_BlipFill_SetRasterImageId, oldRasterImageId: this.RasterImageId, newRasterImageId: rasterImageId}); //History.Add(this, {Type: historyitem_BlipFill_SetRasterImageId, oldRasterImageId: this.RasterImageId, newRasterImageId: rasterImageId});
this.RasterImageId = rasterImageId; this.RasterImageId = checkRasterImageId(rasterImageId);
}, },
setVectorImageBin: function(vectorImageBin) setVectorImageBin: function(vectorImageBin)
......
...@@ -712,6 +712,10 @@ CShape.prototype.Is_ThisElementCurrent = function(CurElement) ...@@ -712,6 +712,10 @@ CShape.prototype.Is_ThisElementCurrent = function(CurElement)
{ {
return editor.WordControl.m_oLogicDocument.DrawingObjects.getTargetDocContent() === this.getDocContent(); return editor.WordControl.m_oLogicDocument.DrawingObjects.getTargetDocContent() === this.getDocContent();
}; };
CShape.prototype.Is_UseInDocument = function()
{
return !this.bDeleted;
};
CShape.prototype.Is_HdrFtr = function(bool) CShape.prototype.Is_HdrFtr = function(bool)
{ {
if(!this.group) if(!this.group)
......
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