summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ThemeEditor.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ThemeEditor.php b/src/ThemeEditor.php
index 0b62264..194b59d 100644
--- a/src/ThemeEditor.php
+++ b/src/ThemeEditor.php
@@ -62,12 +62,12 @@ class ThemeEditor
'wp-codemirror',
'window.CodeMirror = wp.CodeMirror;'
);
- wp_enqueue_script('mode-twig', 'https://unpkg.com/codemirror@5/mode/twig/twig.js', ['wp-codemirror']);
+ wp_enqueue_script('codemirror-mode-twig', timberEditorAssetsUrl('codemirror/mode/twig/twig.js'), ['wp-codemirror']);
}
$theme = $settings['codemirror']['theme'];
if ($theme != 'default') {
- wp_enqueue_style('codemirror-theme', "https://unpkg.com/codemirror@5/theme/$theme.css", ['wp-codemirror']);
+ wp_enqueue_style('codemirror-theme', timberEditorAssetsUrl("codemirror/theme/$theme.css"), ['wp-codemirror']);
}
}
}