fix model value
This commit is contained in:
@@ -177,10 +177,10 @@ export default {
|
||||
modalLoad: false,
|
||||
};
|
||||
},
|
||||
props: ["name", "value", "showcopy", "lang"],
|
||||
props: ["name", "modelValue", "showcopy", "lang"],
|
||||
mounted: function () {
|
||||
//var trimmed = $("#body_pagebuilder").val().replace((/ |\r\n|\n|\r/gm),"");
|
||||
var trimmed = this.value; //.replace((/{2} |\r\n|\n|\r/gm), "");
|
||||
var trimmed = this.modelValue; //.replace((/{2} |\r\n|\n|\r/gm), "");
|
||||
try {
|
||||
this.comps = JSON.parse(trimmed);
|
||||
} catch (e) {
|
||||
@@ -227,7 +227,7 @@ export default {
|
||||
var data = {
|
||||
id: this.pageType.id,
|
||||
name: this.pageType.name,
|
||||
source: this.value,
|
||||
source: this.modelValue,
|
||||
description: this.pageType.description,
|
||||
};
|
||||
if (this.$pagebuilder.axios) {
|
||||
|
||||
Reference in New Issue
Block a user