Latest beta of TinyMCE provides an official CDN single file version, see http://www.tinymce.com/forum/viewtopic.php?id=31024 ... supporting this in Wysiwyg module would make enabling WYSIWYG module with TinyMCE a lot easier.

Comments

TwoD’s picture

I agree that this would be convenient. Wysiwyg does not officially support loading external libraries at this point, and I haven't attempted it either, so I'm not sure how this would work. I think it should be theoretically possible though since the format used for specifying the library files to load is pretty much identical to what gets sent to drupal_add_js, though some parts of the code may assume the library path needs to be pre-pended before use. I few conditions here and there, or a more general library handling code overall, should fix that.

This isn't on my todo list for the near future since other more basic issues are currently my priority. If anyone else feels like giving it a try, I'd be happy to review patches. I think we should try to use as much as possible from Libraries API over extending Wysiwyg's existing code for this, and other library loading issues. Libraries API was created much because of the issues Wysiwyg encountered with recognizing and loading 3rd party libraries and I think it has now matured to a point where we should consider relying on it when it's available. Let's not make it an actual requirement before a new major version though, minor versions should not breaks existing APIs, only extend them.

TwoD’s picture

Issue summary: View changes
Status: Active » Postponed
Parent issue: » #3049763: Investigate support for loading libraries from CDN