This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* mystyles.js - for ProcessWire CKEditor "Custom Editor Styles Set" option | |
* | |
* Example file for "Custom Editor Styles Set" as seen in your CKEditor field config. | |
* This file is not in use unless you specify it for that configuration item. | |
* | |
* PLEASE NOTE: | |
* | |
* It's possible this file may be out of date since it is in /site/ rather than /wire/, | |
* and the version of this file will reflect whatever version you had when you first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function backup() { | |
function downloadBlob(filename, blobUrl) { | |
var element = document.createElement('a'); | |
element.setAttribute('href', blobUrl); | |
element.setAttribute('download', filename); | |
element.style.display = 'none'; | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Groups & Products references guard. | |
* | |
* Bidirectional save & remove of products & groups | |
* | |
* templates: | |
* - 'group', pagefield: page_products | |
* - 'product', pagefield: page_groups |