@innovastudio/contentbuilder 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.7",
4
+ "version": "1.5.8",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -2075,20 +2075,6 @@ button:focus-visible {
2075
2075
  font-weight: 300;
2076
2076
  outline: none;
2077
2077
  }
2078
- #_cbhtml .is-modal .pickcolor, #_cbhtml .is-modal .pickcolorclass, #_cbhtml .is-modal .imagesource, #_cbhtml .is-modal .imageadjust, #_cbhtml .is-modal .imageadjust2,
2079
- #_cbhtml .is-modal .audioselect, #_cbhtml .is-modal .imageselect, #_cbhtml .is-modal .mediaselect, #_cbhtml .is-modal .videoselect, #_cbhtml .is-modal .mediasource,
2080
- .is-ui .is-modal .pickcolor,
2081
- .is-ui .is-modal .pickcolorclass,
2082
- .is-ui .is-modal .imagesource,
2083
- .is-ui .is-modal .imageadjust,
2084
- .is-ui .is-modal .imageadjust2,
2085
- .is-ui .is-modal .audioselect,
2086
- .is-ui .is-modal .imageselect,
2087
- .is-ui .is-modal .mediaselect,
2088
- .is-ui .is-modal .videoselect,
2089
- .is-ui .is-modal .mediasource {
2090
- z-index: 10005 !important;
2091
- }
2092
2078
  #_cbhtml .is-modal a:focus,
2093
2079
  .is-ui .is-modal a:focus {
2094
2080
  outline: #3e93f7 2px solid;
@@ -2274,13 +2260,14 @@ button:focus-visible {
2274
2260
  .is-ui .is-modal div.is-modal-footer button {
2275
2261
  margin-left: 2px;
2276
2262
  }
2277
- #_cbhtml .is-modal.fileselect, #_cbhtml .is-modal.mediaselect, #_cbhtml .is-modal.imageselect, #_cbhtml .is-modal.videoselect, #_cbhtml .is-modal.otherselect, #_cbhtml .is-modal.pickcolor, #_cbhtml .is-modal.pickcolorclass, #_cbhtml .is-modal.imagesource, #_cbhtml .is-modal.imageadjust, #_cbhtml .is-modal.imageadjust2, #_cbhtml .is-modal.audioselect, #_cbhtml .is-modal.mediasource,
2263
+ #_cbhtml .is-modal.fileselect, #_cbhtml .is-modal.mediaselect, #_cbhtml .is-modal.imageselect, #_cbhtml .is-modal.videoselect, #_cbhtml .is-modal.otherselect, #_cbhtml .is-modal.pickcolor, #_cbhtml .is-modal.pickcolormore, #_cbhtml .is-modal.pickcolorclass, #_cbhtml .is-modal.imagesource, #_cbhtml .is-modal.imageadjust, #_cbhtml .is-modal.imageadjust2, #_cbhtml .is-modal.audioselect, #_cbhtml .is-modal.mediasource,
2278
2264
  .is-ui .is-modal.fileselect,
2279
2265
  .is-ui .is-modal.mediaselect,
2280
2266
  .is-ui .is-modal.imageselect,
2281
2267
  .is-ui .is-modal.videoselect,
2282
2268
  .is-ui .is-modal.otherselect,
2283
2269
  .is-ui .is-modal.pickcolor,
2270
+ .is-ui .is-modal.pickcolormore,
2284
2271
  .is-ui .is-modal.pickcolorclass,
2285
2272
  .is-ui .is-modal.imagesource,
2286
2273
  .is-ui .is-modal.imageadjust,
@@ -6220,3 +6207,7 @@ div[data-html] {
6220
6207
  mix-blend-mode: screen;
6221
6208
  filter: invert(1);
6222
6209
  }
6210
+
6211
+ i.bi, i.icon {
6212
+ display: inline-flex;
6213
+ }
@@ -45220,6 +45220,8 @@ class Image$1 {
45220
45220
  try {
45221
45221
  img.setAttribute('data-filename', input.files[0].name); //needed for saveimage.js |
45222
45222
 
45223
+ // img.crossOrigin = 'anonymous';
45224
+
45223
45225
  this.processImage(input.files[0], img, () => {
45224
45226
  imageProgress.style.display = 'none';
45225
45227
  elm = imageTool.querySelector('#fileEmbedImage');
@@ -71224,7 +71226,7 @@ class Rte {
71224
71226
  addIcon(classname) {
71225
71227
  const dom = this.dom;
71226
71228
  this.util.restoreSelection();
71227
- if (this.builder.activeIcon) {
71229
+ if (this.builder.activeIcon && this.builder.doc.contains(this.builder.activeIcon)) {
71228
71230
  this.builder.uo.saveForUndo();
71229
71231
 
71230
71232
  /*
@@ -71256,6 +71258,12 @@ class Rte {
71256
71258
  this.builder.uo.saveForUndo();
71257
71259
  this.util.pasteHtmlAtCaret('<i class="' + classname + ' icon-active"></i>', true);
71258
71260
  this.builder.activeIcon = this.builder.doc.querySelector('.icon-active');
71261
+
71262
+ // this.util.pasteHtmlAtCaret('<i class="icon-active"></i>', true);
71263
+ // const newIcon = this.builder.doc.querySelector('.icon-active');
71264
+ // newIcon.className = classname + ' icon-active';
71265
+ // this.builder.activeIcon = newIcon;
71266
+
71259
71267
  dom.selectElementContents(this.builder.activeIcon);
71260
71268
  this.util.saveSelection();
71261
71269
  }