croco-html 4.9.6 → 4.10.0
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/fesm2022/croco-html.mjs
CHANGED
|
@@ -3217,6 +3217,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
3217
3217
|
}] } });
|
|
3218
3218
|
|
|
3219
3219
|
class VisualEditorComponent {
|
|
3220
|
+
isHtmlSet() {
|
|
3221
|
+
return this.html.startsWith("<body>");
|
|
3222
|
+
}
|
|
3223
|
+
clearHtml() {
|
|
3224
|
+
this.html = "";
|
|
3225
|
+
this.recalculateBodyTags();
|
|
3226
|
+
}
|
|
3227
|
+
getHtml() {
|
|
3228
|
+
this.recalculateHtml();
|
|
3229
|
+
return this.html;
|
|
3230
|
+
}
|
|
3220
3231
|
constructor(_cdref, _options) {
|
|
3221
3232
|
this._cdref = _cdref;
|
|
3222
3233
|
this._options = _options;
|
|
@@ -3257,6 +3268,10 @@ class VisualEditorComponent {
|
|
|
3257
3268
|
moveItemInArray(this.bodyTags, event.previousIndex, event.currentIndex);
|
|
3258
3269
|
this.recalculateHtml();
|
|
3259
3270
|
}
|
|
3271
|
+
addTag(tag) {
|
|
3272
|
+
this.bodyTags.push(tag);
|
|
3273
|
+
this.recalculateHtml();
|
|
3274
|
+
}
|
|
3260
3275
|
onTagChangedHandler(data, index) {
|
|
3261
3276
|
this.bodyTags[index] = data;
|
|
3262
3277
|
this.recalculateHtml();
|