diff options
author | Daniel Weipert <code@drogueronin.de> | 2020-10-28 20:03:06 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2020-10-28 20:03:06 +0100 |
commit | ff5b1598c918b12ff9b222b0397b43d0ed5ffae6 (patch) | |
tree | 8005ae5d8990d0d2dd6bf1f2b9f5576b2edc0872 /editor-for-timber.php | |
parent | fc7cf1662c93bd0028cbd88c6f56917eae771312 (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.php | 4 |
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__); +} |