@innovastudio/contentbuilder 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/license.txt +79 -79
- package/package.json +1 -1
- package/public/contentbuilder/config.js +6 -6
- package/public/contentbuilder/contentbuilder.esm.js +31 -3
- package/public/contentbuilder/contentbuilder.min.js +1 -1
- package/public/contentbuilder/lang/en.js +337 -337
- package/public/contentbuilder/lang/fr.js +337 -337
- package/public/contentbuilder/plugins/buttoneditor/plugin.js +1600 -1600
- package/public/contentbuilder/plugins/buttoneditor/readme.txt +6 -6
- package/public/contentbuilder/plugins/helloworld/plugin.js +15 -15
- package/public/contentbuilder/plugins/helloworld/readme.txt +23 -23
- package/public/contentbuilder/plugins/preview/plugin.js +339 -339
- package/public/contentbuilder/plugins/preview/readme.txt +23 -23
- package/public/contentbuilder/plugins/searchreplace/plugin.js +459 -459
- package/public/contentbuilder/plugins/searchreplace/readme.txt +23 -23
- package/public/contentbuilder/plugins/searchreplace/searchreplace.html +264 -264
- package/public/contentbuilder/plugins/showgrid/plugin.js +74 -74
- package/public/contentbuilder/plugins/showgrid/readme.txt +23 -23
- package/public/contentbuilder/plugins/symbols/plugin.js +2876 -2876
- package/public/contentbuilder/plugins/symbols/readme.txt +23 -23
- package/public/contentbuilder/plugins/wordcount/plugin.js +76 -76
- package/public/contentbuilder/plugins/wordcount/readme.txt +23 -23
- package/readme.txt +25 -25
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
Insert Symbols Plugin
|
|
2
|
-
|
|
3
|
-
To install the plugin, modify config file (contentbuilder\config.js) as follow:
|
|
4
|
-
|
|
5
|
-
_cb.settings.plugins = ['symbols'];
|
|
6
|
-
|
|
7
|
-
This plugin will add an 'Insert Symbols' button on the 'More' popup on toolbar (click the 'More' button).
|
|
8
|
-
|
|
9
|
-
You can also add the "symbols" button on the buttons or buttonsMore parameters:
|
|
10
|
-
|
|
11
|
-
var obj = $.contentbuilder({
|
|
12
|
-
...
|
|
13
|
-
buttons: [..., "symbols", ...]
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
or
|
|
17
|
-
|
|
18
|
-
var obj = $.contentbuilder({
|
|
19
|
-
...
|
|
20
|
-
buttonsMore: [..., "symbols", ...]
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
For more info about buttons or buttonsMore parameters, please check the ContentBuilder.js readme.txt.
|
|
1
|
+
Insert Symbols Plugin
|
|
2
|
+
|
|
3
|
+
To install the plugin, modify config file (contentbuilder\config.js) as follow:
|
|
4
|
+
|
|
5
|
+
_cb.settings.plugins = ['symbols'];
|
|
6
|
+
|
|
7
|
+
This plugin will add an 'Insert Symbols' button on the 'More' popup on toolbar (click the 'More' button).
|
|
8
|
+
|
|
9
|
+
You can also add the "symbols" button on the buttons or buttonsMore parameters:
|
|
10
|
+
|
|
11
|
+
var obj = $.contentbuilder({
|
|
12
|
+
...
|
|
13
|
+
buttons: [..., "symbols", ...]
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
or
|
|
17
|
+
|
|
18
|
+
var obj = $.contentbuilder({
|
|
19
|
+
...
|
|
20
|
+
buttonsMore: [..., "symbols", ...]
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
For more info about buttons or buttonsMore parameters, please check the ContentBuilder.js readme.txt.
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Word Count Plugin
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
(function () {
|
|
6
|
-
if(typeof _cb === 'undefined') return;
|
|
7
|
-
|
|
8
|
-
var html = '<div class="is-modal wordcount" style="z-index:10005">' +
|
|
9
|
-
'<div class="is-modal-content" style="max-width:300px;height:200px;padding:0;">' +
|
|
10
|
-
'<div class="is-modal-bar is-draggable" style="height:32px;line-height:32px;">' +
|
|
11
|
-
_cb.out('Word Count') +
|
|
12
|
-
'<div class="is-modal-close">✕</div>' +
|
|
13
|
-
'</div>' +
|
|
14
|
-
'<div style="padding:45px 20px 0;">' +
|
|
15
|
-
'<div style="line-height:1"><span id="spanWords" style="font-size:60px;font-weight:700;"></span> <span style="letter-spacing: 1px;font-size:15px;">' + _cb.out('words') + '</span></div>' +
|
|
16
|
-
'<div style="padding:8px 0 0 5px;letter-spacing: 1px;font-size:15px;">' +
|
|
17
|
-
_cb.out('Characters') + ': <span id="spanChars"></span><br>' +
|
|
18
|
-
_cb.out('Characters (no spaces)') + ': <span id="spanCharsNoSpaces"></span>' +
|
|
19
|
-
'</div>' +
|
|
20
|
-
'<div id="tmp_wordcount" style="width:1px;height:1px;visibility:hidden;""></div>' +
|
|
21
|
-
'</div>' +
|
|
22
|
-
'</div>' +
|
|
23
|
-
'</div>' +
|
|
24
|
-
'<svg width="0" height="0" style="display:none;">' +
|
|
25
|
-
'<defs>' +
|
|
26
|
-
'<symbol viewBox="0 0 512 512" id="ion-information"><path d="M288 448V192h-96v16h32v240h-32v16h128v-16zM255.8 144.5c26.6 0 48.2-21.6 48.2-48.2s-21.6-48.2-48.2-48.2-48.2 21.6-48.2 48.2 21.6 48.2 48.2 48.2z"></path></symbol>' +
|
|
27
|
-
'</defs>' +
|
|
28
|
-
'</svg>';
|
|
29
|
-
|
|
30
|
-
_cb.addHtml(html);
|
|
31
|
-
|
|
32
|
-
var css = '' +
|
|
33
|
-
'' +
|
|
34
|
-
'';
|
|
35
|
-
|
|
36
|
-
_cb.addCss(css);
|
|
37
|
-
|
|
38
|
-
var button = '<button class="wordcount-button" title="Word Count" style="font-size:15px;vertical-align:bottom;">' +
|
|
39
|
-
'<svg class="is-icon-flex" style="margin-top:-1px"><use xlink:href="#ion-information"></use></svg>' +
|
|
40
|
-
'</button>';
|
|
41
|
-
|
|
42
|
-
_cb.addButton('wordcount', button, '.wordcount-button', function () {
|
|
43
|
-
|
|
44
|
-
showWordCount();
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
_cb.addButton2('wordcount', button, '.wordcount-button', function () {
|
|
48
|
-
|
|
49
|
-
showWordCount();
|
|
50
|
-
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
function showWordCount() {
|
|
54
|
-
var modal = document.querySelector(".is-modal.wordcount");
|
|
55
|
-
_cb.showModal(modal);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
modal.querySelector('#tmp_wordcount').innerHTML = _cb.html();
|
|
59
|
-
var txt = modal.querySelector('#tmp_wordcount').textContent;
|
|
60
|
-
modal.querySelector('#tmp_wordcount').innerHTML = '';
|
|
61
|
-
// https://stackoverflow.com/questions/9864644/jquery-character-and-word-count
|
|
62
|
-
var chars = txt.length;
|
|
63
|
-
var charsnospaces = txt.replace(/\s/g, "").length;
|
|
64
|
-
var words = txt.replace(/[^\w ]/g, "").split(/\s+/).length;
|
|
65
|
-
|
|
66
|
-
modal.querySelector('#spanWords').innerText = words;
|
|
67
|
-
modal.querySelector('#spanChars').innerText = chars;
|
|
68
|
-
modal.querySelector('#spanCharsNoSpaces').innerText = charsnospaces;
|
|
69
|
-
|
|
70
|
-
var btnClose = modal.querySelector('.is-modal-close');
|
|
71
|
-
btnClose.addEventListener('click', function(e){
|
|
72
|
-
_cb.hideModal(modal);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
})();
|
|
1
|
+
/*
|
|
2
|
+
Word Count Plugin
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
(function () {
|
|
6
|
+
if(typeof _cb === 'undefined') return;
|
|
7
|
+
|
|
8
|
+
var html = '<div class="is-modal wordcount" style="z-index:10005">' +
|
|
9
|
+
'<div class="is-modal-content" style="max-width:300px;height:200px;padding:0;">' +
|
|
10
|
+
'<div class="is-modal-bar is-draggable" style="height:32px;line-height:32px;">' +
|
|
11
|
+
_cb.out('Word Count') +
|
|
12
|
+
'<div class="is-modal-close">✕</div>' +
|
|
13
|
+
'</div>' +
|
|
14
|
+
'<div style="padding:45px 20px 0;">' +
|
|
15
|
+
'<div style="line-height:1"><span id="spanWords" style="font-size:60px;font-weight:700;"></span> <span style="letter-spacing: 1px;font-size:15px;">' + _cb.out('words') + '</span></div>' +
|
|
16
|
+
'<div style="padding:8px 0 0 5px;letter-spacing: 1px;font-size:15px;">' +
|
|
17
|
+
_cb.out('Characters') + ': <span id="spanChars"></span><br>' +
|
|
18
|
+
_cb.out('Characters (no spaces)') + ': <span id="spanCharsNoSpaces"></span>' +
|
|
19
|
+
'</div>' +
|
|
20
|
+
'<div id="tmp_wordcount" style="width:1px;height:1px;visibility:hidden;""></div>' +
|
|
21
|
+
'</div>' +
|
|
22
|
+
'</div>' +
|
|
23
|
+
'</div>' +
|
|
24
|
+
'<svg width="0" height="0" style="display:none;">' +
|
|
25
|
+
'<defs>' +
|
|
26
|
+
'<symbol viewBox="0 0 512 512" id="ion-information"><path d="M288 448V192h-96v16h32v240h-32v16h128v-16zM255.8 144.5c26.6 0 48.2-21.6 48.2-48.2s-21.6-48.2-48.2-48.2-48.2 21.6-48.2 48.2 21.6 48.2 48.2 48.2z"></path></symbol>' +
|
|
27
|
+
'</defs>' +
|
|
28
|
+
'</svg>';
|
|
29
|
+
|
|
30
|
+
_cb.addHtml(html);
|
|
31
|
+
|
|
32
|
+
var css = '' +
|
|
33
|
+
'' +
|
|
34
|
+
'';
|
|
35
|
+
|
|
36
|
+
_cb.addCss(css);
|
|
37
|
+
|
|
38
|
+
var button = '<button class="wordcount-button" title="Word Count" style="font-size:15px;vertical-align:bottom;">' +
|
|
39
|
+
'<svg class="is-icon-flex" style="margin-top:-1px"><use xlink:href="#ion-information"></use></svg>' +
|
|
40
|
+
'</button>';
|
|
41
|
+
|
|
42
|
+
_cb.addButton('wordcount', button, '.wordcount-button', function () {
|
|
43
|
+
|
|
44
|
+
showWordCount();
|
|
45
|
+
|
|
46
|
+
});
|
|
47
|
+
_cb.addButton2('wordcount', button, '.wordcount-button', function () {
|
|
48
|
+
|
|
49
|
+
showWordCount();
|
|
50
|
+
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
function showWordCount() {
|
|
54
|
+
var modal = document.querySelector(".is-modal.wordcount");
|
|
55
|
+
_cb.showModal(modal);
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
modal.querySelector('#tmp_wordcount').innerHTML = _cb.html();
|
|
59
|
+
var txt = modal.querySelector('#tmp_wordcount').textContent;
|
|
60
|
+
modal.querySelector('#tmp_wordcount').innerHTML = '';
|
|
61
|
+
// https://stackoverflow.com/questions/9864644/jquery-character-and-word-count
|
|
62
|
+
var chars = txt.length;
|
|
63
|
+
var charsnospaces = txt.replace(/\s/g, "").length;
|
|
64
|
+
var words = txt.replace(/[^\w ]/g, "").split(/\s+/).length;
|
|
65
|
+
|
|
66
|
+
modal.querySelector('#spanWords').innerText = words;
|
|
67
|
+
modal.querySelector('#spanChars').innerText = chars;
|
|
68
|
+
modal.querySelector('#spanCharsNoSpaces').innerText = charsnospaces;
|
|
69
|
+
|
|
70
|
+
var btnClose = modal.querySelector('.is-modal-close');
|
|
71
|
+
btnClose.addEventListener('click', function(e){
|
|
72
|
+
_cb.hideModal(modal);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
})();
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
Word Count Plugin
|
|
2
|
-
|
|
3
|
-
To install the plugin, modify config file (contentbuilder\config.js) as follow:
|
|
4
|
-
|
|
5
|
-
_cb.settings.plugins = ['wordcount'];
|
|
6
|
-
|
|
7
|
-
This plugin will add a 'Word Count' button on the 'More' popup on toolbar (click the 'More' button).
|
|
8
|
-
|
|
9
|
-
You can also add the "showgrid" button on the buttons or buttonsMore parameters:
|
|
10
|
-
|
|
11
|
-
var obj = $.contentbuilder({
|
|
12
|
-
...
|
|
13
|
-
buttons: [..., "wordcount", ...]
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
or
|
|
17
|
-
|
|
18
|
-
var obj = $.contentbuilder({
|
|
19
|
-
...
|
|
20
|
-
buttonsMore: [..., "wordcount", ...]
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
For more info about buttons or buttonsMore parameters, please check the ContentBuilder.js readme.txt.
|
|
1
|
+
Word Count Plugin
|
|
2
|
+
|
|
3
|
+
To install the plugin, modify config file (contentbuilder\config.js) as follow:
|
|
4
|
+
|
|
5
|
+
_cb.settings.plugins = ['wordcount'];
|
|
6
|
+
|
|
7
|
+
This plugin will add a 'Word Count' button on the 'More' popup on toolbar (click the 'More' button).
|
|
8
|
+
|
|
9
|
+
You can also add the "showgrid" button on the buttons or buttonsMore parameters:
|
|
10
|
+
|
|
11
|
+
var obj = $.contentbuilder({
|
|
12
|
+
...
|
|
13
|
+
buttons: [..., "wordcount", ...]
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
or
|
|
17
|
+
|
|
18
|
+
var obj = $.contentbuilder({
|
|
19
|
+
...
|
|
20
|
+
buttonsMore: [..., "wordcount", ...]
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
For more info about buttons or buttonsMore parameters, please check the ContentBuilder.js readme.txt.
|
package/readme.txt
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
ContentBuilder.js 5.1
|
|
2
|
-
|
|
3
|
-
To get started, please see the documentation:
|
|
4
|
-
|
|
5
|
-
https://innovastudio.com/docs/contentbuilder.pdf
|
|
6
|
-
|
|
7
|
-
or
|
|
8
|
-
|
|
9
|
-
README.md
|
|
10
|
-
|
|
11
|
-
For Source Code Package only: please see readme-sourcecode.txt
|
|
12
|
-
|
|
13
|
-
To try the example:
|
|
14
|
-
|
|
15
|
-
Copy all files into your localhost and open:
|
|
16
|
-
|
|
17
|
-
http://localhost/.../public/example1.html
|
|
18
|
-
|
|
19
|
-
_____________________________________________
|
|
20
|
-
SUPPORT:
|
|
21
|
-
|
|
22
|
-
Email us at: support@innovastudio.com
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
ContentBuilder.js 5.1
|
|
2
|
+
|
|
3
|
+
To get started, please see the documentation:
|
|
4
|
+
|
|
5
|
+
https://innovastudio.com/docs/contentbuilder.pdf
|
|
6
|
+
|
|
7
|
+
or
|
|
8
|
+
|
|
9
|
+
README.md
|
|
10
|
+
|
|
11
|
+
For Source Code Package only: please see readme-sourcecode.txt
|
|
12
|
+
|
|
13
|
+
To try the example:
|
|
14
|
+
|
|
15
|
+
Copy all files into your localhost and open:
|
|
16
|
+
|
|
17
|
+
http://localhost/.../public/example1.html
|
|
18
|
+
|
|
19
|
+
_____________________________________________
|
|
20
|
+
SUPPORT:
|
|
21
|
+
|
|
22
|
+
Email us at: support@innovastudio.com
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|