first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
(function ($) {
$(document).ready(function () {
if (edt.modes === 'js') {
edt.modes = 'javascript';
}
if (edt.modes === 'html') {
edt.modes = 'xml';
}
var themeArea = document.getElementById('newcontent');
height = themeArea.offsetHeight;
template = document.getElementById('template');
wrapper = document.createElement('div');
themeEditor = CodeMirror.fromTextArea(themeArea, {
mode: edt.modes,
lineNumbers: true,
extraKeys: {"Ctrl-Space": "autocomplete"}
});
wrapper.className = 'wpse-theme-editor';
wrapper.appendChild(themeEditor.getWrapperElement());
template.parentNode.insertBefore(wrapper, template);
themeEditor.setSize(null, height);
themeEditor.refresh();
});
})(jQuery);