7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » $ is not a function
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 2928 Views |
-
Re: $ is not a function

14 January 2011 at 1:43pm
I had the same issue with SimpleTinyMCEField. I found it easier to wrap the config javascript in a...
(function($) {
// code...
})(jQuery);which passes it the jQuery object. Then you don't have to modify all the dollar signs in the code to use 'jQuery' or turn on noconflict.
The config...
(function($) {
$(function() {
$('#%s').tinymce({
plugins : '%s',
theme : '%s',
%s,
theme_advanced_toolbar_location : '%s',
theme_advanced_toolbar_align : '%s',
theme_advanced_statusbar_location : '%s',
theme_advanced_resizing : %s,
paste_auto_cleanup_on_paste : true,
paste_remove_spans: true,
paste_remove_styles: true,
content_css : '%s'
%s
});
});
})(jQuery); -
Re: $ is not a function

12 February 2011 at 1:46am Last edited: 12 February 2011 1:50am
Is there any stable version now of the problem of conflict?
Especially in addition to the module DataObjectManager.
| 2928 Views | ||
| Go to Top |



