+/**
+ * Load custom HTML head content from the settings into the editor.
+ * @param editor
+ */
+function loadCustomHeadContent(editor) {
+ window.$http.get(window.baseUrl('/custom-head-content')).then(resp => {
+ if (!resp.data) return;
+ let head = editor.getDoc().querySelector('head');
+ head.innerHTML += resp.data;
+ });
+}