fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "magico-pagebuilder",
|
||||
"version": "0.0.9",
|
||||
"version": "0.0.10",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -190,11 +190,15 @@ export default {
|
||||
modalCopy: false,
|
||||
pageType: { id: false },
|
||||
modalSave: false,
|
||||
modalLoad: false
|
||||
modalLoad: false,
|
||||
descriptionAllegro:false,
|
||||
}
|
||||
},
|
||||
props: ['name', 'modelValue', 'showcopy', 'lang'],
|
||||
mounted: function () {
|
||||
if(localStorage.getItem('description_clipboard')){
|
||||
this.descriptionAllegro=true;
|
||||
}
|
||||
//var trimmed = $("#body_pagebuilder").val().replace((/ |\r\n|\n|\r/gm),"");
|
||||
var trimmed = this.modelValue //.replace((/{2} |\r\n|\n|\r/gm), "");
|
||||
try {
|
||||
@@ -211,9 +215,6 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
descriptionAllegro: function(){
|
||||
return localStorage.getItem('description_clipboard')
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
if (this.name) this.namex = this.name
|
||||
@@ -265,7 +266,7 @@ export default {
|
||||
this.changeBody()
|
||||
},
|
||||
pasteAllegro: function(){
|
||||
let sections = this.descriptionAllegro;
|
||||
let sections = localStorage.getItem('description_clipboard');
|
||||
try {
|
||||
sections = JSON.parse(sections);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user