kopia lustrzana https://github.com/c9/core
add note about plugin installation to init script
rodzic
5acd862c43
commit
2e26855080
|
@ -81,7 +81,8 @@ define(function(require, exports, module) {
|
||||||
/***** Methods *****/
|
/***** Methods *****/
|
||||||
|
|
||||||
plugin.on("load", function() {
|
plugin.on("load", function() {
|
||||||
c9.on("connect", load, plugin);
|
if (c9.connected) load();
|
||||||
|
else c9.on("connect", load, plugin);
|
||||||
});
|
});
|
||||||
|
|
||||||
plugin.on("unload", function() {
|
plugin.on("unload", function() {
|
||||||
|
|
|
@ -288,7 +288,13 @@ define(function(require, exports, module) {
|
||||||
var script = settings.get("user/config/init.js") || "";
|
var script = settings.get("user/config/init.js") || "";
|
||||||
openTab("~/.c9/init.js", script, "javascript",
|
openTab("~/.c9/init.js", script, "javascript",
|
||||||
"// You can access plugins via the 'services' global variable\n" +
|
"// You can access plugins via the 'services' global variable\n" +
|
||||||
"/*global services, plugin*/\n");
|
"/*global services, plugin*/\n" +
|
||||||
|
"\n" +
|
||||||
|
"// to load plugins use\n" +
|
||||||
|
"// services.pluginManager.loadPackage([\n" +
|
||||||
|
"// \"https://<user>.github.io/<project>/build/package.<name>.js\",\n" +
|
||||||
|
"// \"~/.c9/plugins/<name>/package.json\",\n" +
|
||||||
|
"// ]);\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
function editStylesCss() {
|
function editStylesCss() {
|
||||||
|
|
Ładowanie…
Reference in New Issue