This repository has been archived by the owner on Dec 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Plugin outside of 'js/tinymce/plugins' #33
Comments
Stripping out the crud the current path can be reduced to:
Still don't particularly like this. Other suggestions? |
I want to push a branch to this repo with suggested changed but don't have permission :( |
Please check: #46 |
@peterw8102 please check this issue on gitlab.. still open ;).. sorry, just moved the repo... but as you wrote earlier (#33 (comment)), you can make a MR and we/i will check |
Thanks @thomich - I realised after I'd left the other comment so deleted it. I'll start using the new repo and when I get a moment I'll look into this again. It's been quite a while now so I need to refresh my memory. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to keep non-Tinymce plugins outside of the Tinymce tree to make upgrades easier.
This plugin works fine when within js/tinymce/plugins/codemirror directory. However the following fails:
The problem is the plugin tries to load 'source.html' from the path provided by TinyMCE as a parameter to tinymce.PluginManager.add()
'url' here will be /tinymce/js/plugins - not where the plugin actually resides.
I've fixed this by working out the path of the currently executing script then using that as the base path for source.html.
I really don't like this as a solution and will look for something better. It should be possible though to have the plugin outside of the TinyMCE source tree.
The text was updated successfully, but these errors were encountered: