migrate to new git

This commit is contained in:
2025-08-29 01:27:25 +08:00
parent 946eb9961e
commit af2c152ef6
8623 changed files with 1000453 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
/*
Hello World Plugin
*/
(function () {
var button_html = '<button id="my_helloworld_button" title="Hello World" style="text-transform:none">hello</button>';
_cb.addButton('helloworld', button_html, '#my_helloworld_button', function () {
alert('Hello World');
});
})();

View File

@@ -0,0 +1,23 @@
Hello World Plugin
To install the plugin, modify config file (contentbuilder\config.js) as follow:
_cb.settings.plugins = ['helloworld'];
This plugin will add a 'Hello World' button on the 'More' popup on toolbar (click the 'More' button).
You can also add the "helloworld" button on the buttons or buttonsMore parameters:
var obj = $.contentbuilder({
...
buttons: [..., "helloworld", ...]
});
or
var obj = $.contentbuilder({
...
buttonsMore: [..., "helloworld", ...]
});
For more info about buttons or buttonsMore parameters, please check the ContentBuilder.js readme.txt.