I want to adjust the min-height of the reductor editor in config.js (I want to have some height in the text area), but it works in a local environment, but when deployed to heroku, the configuration is no longer reflected.
Could you please let me know if you have any idea why the behavior is different between the local environment and the heroku environment?
config.register_stylesheet 'redactor-rails.css' config.register_javascript 'redactor-rails.js'
#=require redactor-railsruby ruby-on-rails redactor heroku
There was a answer in the home SO (original material is this issue on GitHub).
In summary,
Create your own config.js
, put it in the asset
of the app
, and instead of writing #=require redactor-rails
,
#=require redactor-rails/redactor.min
#= require path /to/custom/config (path to config.js)
It's good to write
The reason is that the rakeassets:precompile
task picks up config.js
(the default) in the gem.
The GitHub issue has not been updated for a while, so it seems that it has not been resolved...
884 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
596 GDB gets version error when attempting to debug with the Presense SDK (IDE)
567 Who developed the "avformat-59.dll" that comes with FFmpeg?
566 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.