Commit 346a4ce9 authored by Oleg Korshul's avatar Oleg Korshul

plugins bug (scroll ie/edge) & setInputParams

parent 98784d26
...@@ -1368,6 +1368,15 @@ ...@@ -1368,6 +1368,15 @@
baseEditorsApi.prototype.Input_UpdatePos = function() baseEditorsApi.prototype.Input_UpdatePos = function()
{ {
}; };
baseEditorsApi.prototype["setInputParams"] = function(_obj)
{
window["AscInputMethod"] = window["AscInputMethod"] || {};
for (var _prop in _obj)
{
window["AscInputMethod"][_prop] = _obj[_prop];
}
};
baseEditorsApi.prototype.asc_addSignatureLine = function (sGuid, sSigner, sSigner2, sEmail, Width, Height, sImgUrl) { baseEditorsApi.prototype.asc_addSignatureLine = function (sGuid, sSigner, sSigner2, sEmail, Width, Height, sImgUrl) {
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
ifr.id = "plugin_iframe"; ifr.id = "plugin_iframe";
var _add = this.current.baseUrl == "" ? this.path : this.current.baseUrl; var _add = this.current.baseUrl == "" ? this.path : this.current.baseUrl;
ifr.src = _add + this.current.variations[this.currentVariation].url; ifr.src = _add + this.current.variations[this.currentVariation].url;
ifr.style.position = 'absolute'; ifr.style.position = AscCommon.AscBrowser.isIE ? 'fixed' : "absolute";
ifr.style.top = '-100px'; ifr.style.top = '-100px';
ifr.style.left = '0px'; ifr.style.left = '0px';
ifr.style.width = '10000px'; ifr.style.width = '10000px';
......
...@@ -34,8 +34,7 @@ ...@@ -34,8 +34,7 @@
(function(window, undefined) (function(window, undefined)
{ {
window["AscInputMethod"] = {}; window["AscInputMethod"] = window["AscInputMethod"] || {};
window["AscInputMethod"]["SogouPinyin"] = false;
/// ///
// такие методы нужны в апи // такие методы нужны в апи
// baseEditorsApi.prototype.Begin_CompositeInput = function() // baseEditorsApi.prototype.Begin_CompositeInput = function()
...@@ -1114,7 +1113,7 @@ ...@@ -1114,7 +1113,7 @@
this.clear(); this.clear();
var isSendToApi = true; var isSendToApi = true;
if (window["AscInputMethod"]["SogouPinyin"]) if (true === window["AscInputMethod"]["SogouPinyin"])
{ {
if (AscCommon.AscBrowser.isChrome) if (AscCommon.AscBrowser.isChrome)
{ {
......
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