Ticket #162 (closed enhancement: fixed)
jQuery.noConflict() and plugin resizable
Reported by: | klgMEDIA | Owned by: | jf.hovinne |
---|---|---|---|
Priority: | minor | Milestone: | 0.5 |
Component: | editor | Version: | trunk |
Keywords: | plugin resizable | Cc: |
Description
When using Prototype and wymeditor on the same page jQuery.noConflict() have to be used.
But this breaks the resizable plugin.
to fix this the first $ can be changed to jQuery on line 92 and 98 in:
/trunk/src/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js
That is: (result)
// First get the jQuery UI base file jQuery.getScript(jQueryPlugins[0]); // Line 92 // Get the jQuery UI resizeable plugin and then init the wymeditor resize // plugin. It is import to do the initialisation after loading the // necessary jQuery UI files has finished, otherwise the "resizable" method // would not be available. jQuery.getScript(jQueryPlugins[1], function() { // Line 98 jQuery(wym._box).resizable(final_options); });
Tested successfully with and without "noConflict()" in MSIE6-7 and FireFox 3.0.7
Change History
Note: See
TracTickets for help on using
tickets.
Fixed by r584.