Sync plugins from current page

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-09-11 19:08:46 +02:00
parent 85d41e4216
commit 8515ff9587
1847 changed files with 505469 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// Options JavaScript
jQuery( document ).ready( function( $ ) {
var theme = codemirror_options.theme ? codemirror_options.theme: 'default';
var editor = CodeMirror.fromTextArea(document.getElementById("codemirror_demo"), {
lineNumbers: true,
matchBrackets: true,
mode: "application/x-httpd-php",
indentUnit: 4,
indentWithTabs: true,
enterMode: "keep",
tabMode: "shift",
theme: theme
});
$('input[name="SnS_options[cm_theme]"]').change( function(){
editor.setOption("theme", $(this).val());
});
});