Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Preseve currently edited component content by sending whole page when refreshing components

givanz65dcf5b80500
diff --git a/public/js/vvvebjs/components/server-component.js b/public/js/vvvebjs/components/server-component.js
index cd951c2..9da942a 100755
--- a/public/js/vvvebjs/components/server-component.js
+++ b/public/js/vvvebjs/components/server-component.js
@@ -35,6 +35,7 @@ class ServerComponent {
let data = new FormData();
data.append("_component_content", this.content);
+ data.append("html", Vvveb.Builder.getHtml());
fetch(this.url + '&_component_ajax=' + this.component + '&_component_id=' + this.index + '&_server_template=' + this.userServerTemplate + '&r=true',{
method: 'POST',