summernote-rails icon indicating copy to clipboard operation
summernote-rails copied to clipboard

TypeError: t is null in Firefox

Open wh1le opened this issue 8 years ago • 4 comments

Hello :wave:, I've the problem with summernote gem: TypeError: t is null This issue appears only in Firefox 49.0(and other versions apparently) after assets compilation but in development environment all works fine. In project I use Rails 4.2.7., coffee and sass. Some files below:

Gemfile

gem 'summernote-rails'
gem 'bootstrap-sass'

application.coffee

#= require summernote
#= require summernote/locales/ru-RU

admin.sass

@import "bootstrap-sprockets"
@import "bootstrap"
@import "summernote"

The place of error in firefox.

r="function"==typeof define&&define.amd,o=function(e)
{var n="Comic Sans MS"===e?"Courier New":"Comic Sans MS",i=t("<div>").css({position:"absolute",left:"-9999px",top:"-9999px",fontSize:"200px"})
.text("mmmmmmmmmwwwwwww").appendTo

wh1le avatar Oct 23 '16 10:10 wh1le

I recommend to go to summernote repository and open issue there.

summernote-rails gem only add neccesary js, css on sprockets path. meaning to say, there is no problem with gem if you load these things successfully. :) so, unfortunately we could not help you.

riseshia avatar Nov 02 '16 06:11 riseshia

@riseshia I had required summernote as JS library and bug disappeared :) The summernote-rails developers should update version of summernote lib and it'll fix error.

wh1le avatar Nov 03 '16 18:11 wh1le

@nmiloserdov it sounds good. I'm working on updating asset version, you could see it soon XD

riseshia avatar Nov 04 '16 00:11 riseshia

OTL I forget to notify newer version release at that time. how have you been? do you have same errors now?

riseshia avatar May 05 '17 23:05 riseshia