@innovastudio/contentbox 1.4.47 → 1.4.49
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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.4.
|
4
|
+
"version": "1.4.49",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"webpack-dev-server": "^4.0.0"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@innovastudio/contentbuilder": "^1.3.
|
49
|
+
"@innovastudio/contentbuilder": "^1.3.54",
|
50
50
|
"js-beautify": "^1.14.0"
|
51
51
|
}
|
52
52
|
}
|
@@ -1001,7 +1001,13 @@ class SideBar {
|
|
1001
1001
|
|
1002
1002
|
viewHtml() {
|
1003
1003
|
const builderStuff = this.builderStuff;
|
1004
|
-
|
1004
|
+
let html;
|
1005
|
+
|
1006
|
+
if (this.builder.shortenHTML) {
|
1007
|
+
html = this.builder.html(true); //For View
|
1008
|
+
} else {
|
1009
|
+
html = this.builder.html();
|
1010
|
+
}
|
1005
1011
|
|
1006
1012
|
builderStuff.querySelector('#inpViewHtml').value = html;
|
1007
1013
|
let elms = builderStuff.querySelectorAll('[data-source-active]');
|
@@ -1027,7 +1033,13 @@ class SideBar {
|
|
1027
1033
|
viewHtml2() {
|
1028
1034
|
const builderStuff = this.builderStuff; //document.body.style.overflow = 'hidden';
|
1029
1035
|
|
1030
|
-
let html
|
1036
|
+
let html;
|
1037
|
+
|
1038
|
+
if (this.builder.shortenHTML) {
|
1039
|
+
html = this.builder.html(true); //For View
|
1040
|
+
} else {
|
1041
|
+
html = this.builder.html();
|
1042
|
+
}
|
1031
1043
|
|
1032
1044
|
builderStuff.querySelector('#inpViewHtml').value = html;
|
1033
1045
|
}
|
@@ -17757,10 +17769,8 @@ class Util {
|
|
17757
17769
|
dom.addClass(pop, 'active');
|
17758
17770
|
|
17759
17771
|
const handleClickOut = e => {
|
17760
|
-
if (!pop.contains(e.target) && !btn.contains(e.target)) {
|
17772
|
+
if (!pop.contains(e.target) && !btn.contains(e.target) && !e.target.closest('.pickcolormore')) {
|
17761
17773
|
// click outside
|
17762
|
-
const pickcolormore = document.querySelector('.pickcolormore.active');
|
17763
|
-
if (pickcolormore) if (pickcolormore.contains(e.target)) return;
|
17764
17774
|
this.hideRtePop(pop); // hide
|
17765
17775
|
|
17766
17776
|
pop.removeEventListener('keydown', handleKeyDown);
|
@@ -98034,6 +98044,7 @@ class ContentBox {
|
|
98034
98044
|
absolutePath: false,
|
98035
98045
|
maxEmbedImageWidth: 1600,
|
98036
98046
|
zoom: 0.6,
|
98047
|
+
shortenHTML: true,
|
98037
98048
|
contentStyleWithSample: false,
|
98038
98049
|
contentSizes: [300, 320, 340, 360, 380, 400, 420, 440, 460, 480, 500, 520, 540, 560, 580, 600, 620, 640, 660, 680, 700, 720, 740, 760, 780, 800, 820, 840, 860, 880, 900, 920, 940, 960, 970, 980, 1000, 1020, 1040, 1050, 1060, 1080, 1100, 1120, 1140, 1160, 1180, 1200, 1220, 1240, 1260, 1280, 1300, 1320, 1340, 1360, 1380, 1400, 1420, 1440, 1460, 1480, 1500, 1520, 1540, 1560, 1580, 1600, 1620, 1640, 1660, 1680, 1700, 1720, 1740, 1760, 1780, 1800, 1820, 1840, 1860, 1880, 1900, 1920, 1940, 1960, 1980, 2000, 2020, 2040, 2060, 2080, 2100, 2120, 2140, 2160, 2180, 2200, 2220, 2240, 2260, 2280, 2300, 2320, 2340, 2360, 2380, 2400, 2420, 2440, 2460, 2480, 2500, 2520, 2540, 2560, 2580, 2600, 2620, 2640, 2660, 2680, 2700],
|
98039
98050
|
contentStyles: {
|