diff --git a/sdkjs-plugins/content/drawio/index.html b/sdkjs-plugins/content/drawio/index.html index d3dd668a..32688e81 100644 --- a/sdkjs-plugins/content/drawio/index.html +++ b/sdkjs-plugins/content/drawio/index.html @@ -22,8 +22,15 @@ - - +
diff --git a/sdkjs-plugins/content/drawio/scripts/code.js b/sdkjs-plugins/content/drawio/scripts/drawio.js similarity index 100% rename from sdkjs-plugins/content/drawio/scripts/code.js rename to sdkjs-plugins/content/drawio/scripts/drawio.js diff --git a/sdkjs-plugins/content/drawio/scripts/drawio_ie.js b/sdkjs-plugins/content/drawio/scripts/drawio_ie.js new file mode 100644 index 00000000..8acbebae --- /dev/null +++ b/sdkjs-plugins/content/drawio/scripts/drawio_ie.js @@ -0,0 +1,54 @@ +/** + * + * (c) Copyright Ascensio System SIA 2020 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +(function(window, undefined) { + + let message = "This plugin is not supported by IE"; + window.oncontextmenu = function(e) { + if (e.preventDefault) + e.preventDefault(); + if (e.stopPropagation) + e.stopPropagation(); + return false; + }; + + + window.Asc.plugin.init = function() { + let div = document.getElementById('div_preview'); + div.innerHTML = "" + message + "<\/p>"; + div.classList.add('div_message'); + div.classList.remove('hidden'); + }; + + window.Asc.plugin.onThemeChanged = function(theme) + { + window.Asc.plugin.onThemeChangedBase(theme); + }; + + window.Asc.plugin.button = function(id){ + this.executeCommand("close", ""); + }; + + + window.Asc.plugin.onTranslate = function(){ + var elem = document.getElementById("message"); + if (elem){ + elem.innerHTML = message = window.Asc.plugin.tr(message); + } + }; + +})(window, undefined); \ No newline at end of file diff --git a/sdkjs-plugins/content/wordscounter/index.html b/sdkjs-plugins/content/wordscounter/index.html index 4c8178b7..c86faddc 100644 --- a/sdkjs-plugins/content/wordscounter/index.html +++ b/sdkjs-plugins/content/wordscounter/index.html @@ -51,6 +51,13 @@ background-color: #cfcfcf; height: 2px; } + .div_message { + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + } diff --git a/sdkjs-plugins/content/wordscounter/scripts/wordscounter_ie.js b/sdkjs-plugins/content/wordscounter/scripts/wordscounter_ie.js index 43f71db4..f8d56c42 100644 --- a/sdkjs-plugins/content/wordscounter/scripts/wordscounter_ie.js +++ b/sdkjs-plugins/content/wordscounter/scripts/wordscounter_ie.js @@ -28,11 +28,7 @@ window.Asc.plugin.init = function() { - document.getElementById('div_settings').style.display = "none"; - let div = document.createElement("div"); - div.classList.add('div_message') - div.innerHTML = "
" + message + "<\/p>"; - $(div).insertAfter(("#div_settings")); + document.getElementsByTagName('body')[0].innerHTML = "