summernote-rails
summernote-rails copied to clipboard
TypeError: t is null in Firefox
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
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 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.
@nmiloserdov it sounds good. I'm working on updating asset version, you could see it soon XD
OTL I forget to notify newer version release at that time. how have you been? do you have same errors now?