Cerealkillerway / materialNote

Summernote wysiwyg editor converted for Materialize
MIT License
109 stars 44 forks source link

ckTooltip not a function #5

Open MarvinZeising opened 8 years ago

MarvinZeising commented 8 years ago

I just added materialNote to my meteor project. I'm trying to initialize some elements as materialNotes.

Template.template.onRendered ->
  $('.materialnote').materialnote()

But there's always this error:

Exception from Tracker afterFlush function:
TypeError: $buttons.each(...).ckTooltip is not a function
    at HTMLDocument.<anonymous> (materialNote.js:6722)
    at fire (jquery.js:3143)
    at Object.self.add [as done] (jquery.js:3189)
    at jQuery.fn.ready (jquery.js:3423)
    at createTooltip (materialNote.js:6702)
    at createLayoutByFrame (materialNote.js:6873)
    at createLayout (materialNote.js:6978)
    at HTMLDivElement.<anonymous> (materialNote.js:7270)
    at Function.jQuery.extend.each (jquery.js:384)
    at jQuery.fn.jQuery.each (jquery.js:136)

Also tried with 1.2.0 because of that change in 1.2.1 with the createTooltip function (materialNote.js:6702) but it didn't work either.

njpaz commented 8 years ago

Did you include the ckMaterializeOverrides.js file? ckTooltip is defined in that file.

MarvinZeising commented 8 years ago

@njpaz Yes that was the problem! The meteor package seems to be broken somehow. So i added all the necessary files manually to the project. Thank you very much!

adrianratajczak commented 8 years ago

I have similar problem. After including materialNote, default tooltips from materialize stops working