php - Save HTML DOM to Server -
i'm trying develop site 1 can enter editor mode (with following javascript) , change dom.
document.body.contenteditable = "true"; document.designmode = "on"; void 0; i want submit entire html dom when user clicks "save changes" button (via html form), , have php load changes when site refreshed.
is possible? new php, don't know if right way go.
i think browsers support outerhtml on dom play safe should able var markup = document.documentelement.innerhtml;
you free send markup via ajax or other way wish server. should note if don't take necessary steps save button included in markup.
it might better split gui div , content div. send content separately.
Comments
Post a Comment