From ff5b1598c918b12ff9b222b0397b43d0ed5ffae6 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 28 Oct 2020 20:03:06 +0100 Subject: Gets local copies of needed codemirror js and css files via webpack and enqueues those instead of the remote files --- editor-for-timber.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor-for-timber.php') 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__); +} -- cgit v1.2.3