summaryrefslogtreecommitdiff
path: root/editor-for-timber.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2020-10-28 20:03:06 +0100
committerDaniel Weipert <code@drogueronin.de>2020-10-28 20:03:06 +0100
commitff5b1598c918b12ff9b222b0397b43d0ed5ffae6 (patch)
tree8005ae5d8990d0d2dd6bf1f2b9f5576b2edc0872 /editor-for-timber.php
parentfc7cf1662c93bd0028cbd88c6f56917eae771312 (diff)
Gets local copies of needed codemirror js and css files via webpack and enqueues those instead of the remote files
Diffstat (limited to 'editor-for-timber.php')
-rw-r--r--editor-for-timber.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor-for-timber.php b/editor-for-timber.php
index 1dea60c..5900160 100644
--- a/editor-for-timber.php
+++ b/editor-for-timber.php
@@ -14,3 +14,7 @@ add_action('plugins_loaded', 'timberEditor');
function timberEditor() {
new \TimberEditor\TimberEditor();
}
+
+function timberEditorAssetsUrl($path) {
+ return plugins_url("assets/$path", __FILE__);
+}