migrate to new git
This commit is contained in:
@@ -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');
|
||||
|
||||
});
|
||||
|
||||
})();
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user