diff --git a/_server/editor_multi.js b/_server/editor_multi.js index ecfd6b7d..b694bf51 100644 --- a/_server/editor_multi.js +++ b/_server/editor_multi.js @@ -121,6 +121,7 @@ editor_multi = function () { } codeEditor.setValue(tstr || ''); } + document.getElementById('showPlugins').style.display = editor_mode.mode == 'plugins' ? 'block': 'none'; editor_multi.show(); return true; } @@ -186,6 +187,11 @@ editor_multi = function () { setvalue(codeEditor.getValue() || ''); } + editor_multi.showPlugins = function () { + if (editor.isMobile && !confirm("你确定要跳转到云端插件列表吗?")) return; + window.open("https://h5mota.com/plugins/", "_blank"); + } + var multiLineArgs = [null, null, null]; editor_multi.multiLineEdit = function (value, b, f, args, callback) { editor_multi.id = 'callFromBlockly'; diff --git a/editor-mobile.html b/editor-mobile.html index cce91304..30b67da4 100644 --- a/editor-mobile.html +++ b/editor-mobile.html @@ -237,6 +237,7 @@ 语法检查 +