Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » $ is not a function

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 3337 Views
  • Gene
    Avatar
    Community Member
    41 Posts

    Re: $ is not a function Link to this post

    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);

  • idefix
    Avatar
    Community Member
    11 Posts

    Re: $ is not a function Link to this post

    Is there any stable version now of the problem of conflict?
    Especially in addition to the module DataObjectManager.

  • e-scape
    Avatar
    Community Member
    16 Posts

    Re: $ is not a function Link to this post

    @Gene your solution worked for me. Nice one, thanks.

    3337 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.