Index: openacs-4/packages/xowf-monaco-plugin/www/resources/plugin.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf-monaco-plugin/www/resources/Attic/plugin.js,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowf-monaco-plugin/www/resources/plugin.js 28 Jan 2020 22:54:17 -0000 1.1.2.1 @@ -0,0 +1,16 @@ +var xowf = xowf || {}; +xowf.monaco = xowf.monaco || {}; + +/* an empty array as docking bay for all editor instances */ +xowf.monaco.editors = []; + +xowf.monaco.utf8_to_b64 = function(str) { + return window.btoa(unescape(encodeURIComponent(str))); +} + +xowf.monaco.b64_to_utf8 = function(str) { + return decodeURIComponent(escape(window.atob(str))); +} + + +