showPlugins
This commit is contained in:
parent
cbb2a27f01
commit
364f69aa72
@ -121,6 +121,7 @@ editor_multi = function () {
|
|||||||
}
|
}
|
||||||
codeEditor.setValue(tstr || '');
|
codeEditor.setValue(tstr || '');
|
||||||
}
|
}
|
||||||
|
document.getElementById('showPlugins').style.display = editor_mode.mode == 'plugins' ? 'block': 'none';
|
||||||
editor_multi.show();
|
editor_multi.show();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -186,6 +187,11 @@ editor_multi = function () {
|
|||||||
setvalue(codeEditor.getValue() || '');
|
setvalue(codeEditor.getValue() || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editor_multi.showPlugins = function () {
|
||||||
|
if (editor.isMobile && !confirm("你确定要跳转到云端插件列表吗?")) return;
|
||||||
|
window.open("https://h5mota.com/plugins/", "_blank");
|
||||||
|
}
|
||||||
|
|
||||||
var multiLineArgs = [null, null, null];
|
var multiLineArgs = [null, null, null];
|
||||||
editor_multi.multiLineEdit = function (value, b, f, args, callback) {
|
editor_multi.multiLineEdit = function (value, b, f, args, callback) {
|
||||||
editor_multi.id = 'callFromBlockly';
|
editor_multi.id = 'callFromBlockly';
|
||||||
|
|||||||
@ -237,6 +237,7 @@
|
|||||||
<input type="checkbox" onclick="editor_multi.toggerLint()" id="lintCheckbox"
|
<input type="checkbox" onclick="editor_multi.toggerLint()" id="lintCheckbox"
|
||||||
style="vertical-align: bottom;margin-left:6px"/>
|
style="vertical-align: bottom;margin-left:6px"/>
|
||||||
<span style="vertical-align: bottom; margin-left: -3px">语法检查</span>
|
<span style="vertical-align: bottom; margin-left: -3px">语法检查</span>
|
||||||
|
<button onclick="editor_multi.showPlugins()" style="display: none; margin-top: 3px" id="showPlugins">显示云端插件列表</button>
|
||||||
<textarea id="multiLineCode" name="multiLineCode"></textarea>
|
<textarea id="multiLineCode" name="multiLineCode"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div id="left8" class='leftTab' style="z-index:-1;opacity: 0;"><!-- functions -->
|
<div id="left8" class='leftTab' style="z-index:-1;opacity: 0;"><!-- functions -->
|
||||||
|
|||||||
@ -233,6 +233,7 @@
|
|||||||
<input type="checkbox" onclick="editor_multi.toggerLint()" id="lintCheckbox"
|
<input type="checkbox" onclick="editor_multi.toggerLint()" id="lintCheckbox"
|
||||||
style="vertical-align: bottom;margin-left:6px"/>
|
style="vertical-align: bottom;margin-left:6px"/>
|
||||||
<span style="vertical-align: bottom; margin-left: -3px">语法检查</span>
|
<span style="vertical-align: bottom; margin-left: -3px">语法检查</span>
|
||||||
|
<button onclick="editor_multi.showPlugins()" style="display: none; margin-top: 3px" id="showPlugins">显示云端插件列表</button>
|
||||||
<textarea id="multiLineCode" name="multiLineCode"></textarea>
|
<textarea id="multiLineCode" name="multiLineCode"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div id="left8" class='leftTab' style="z-index:-1;opacity: 0;"><!-- functions -->
|
<div id="left8" class='leftTab' style="z-index:-1;opacity: 0;"><!-- functions -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user