From 364f69aa7232b02d420a599689c7bc28edebb59d Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Wed, 23 Oct 2019 10:35:51 +0800 Subject: [PATCH] showPlugins --- _server/editor_multi.js | 6 ++++++ editor-mobile.html | 1 + editor.html | 1 + 3 files changed, 8 insertions(+) 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 @@ 语法检查 +
diff --git a/editor.html b/editor.html index 697de259..38f0b559 100644 --- a/editor.html +++ b/editor.html @@ -233,6 +233,7 @@ 语法检查 +