Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Have you added config.js to your local git repository before pushing?</p> <p>[Edit]</p> <p>A couple more things to check. Are you using the redactor-rails gem, and if so, is it in your gemfile?</p> <pre><code>gem 'jquery-rails' gem 'redactor-rails' </code></pre> <p>Is your gemfile.lock checked into git?</p> <p>[Edit 2]</p> <p>I've now tested this out, and indeed, there's an issue with redactor-rails, which causes custom config to be overwritten by the gem's default.</p> <p>On the github repo, there is a solution, which I've tested on heroku, and copied here: </p> <blockquote> <p><code>rails generate redactor:config</code> generates the file <code>app\assets\redactor-rails\config.js</code>. This will not work in the asset pipeline correctly as the <code>rake assets:precompile</code> task will still take <code>config.js</code> from the gem instead of the app (not that it'll work fine in development though). See <a href="https://stackoverflow.com/questions/7829726/overriding-backend-assets-in-production-environment">Overriding backend assets in production environment</a></p> <p>The solution is to create your own config.js (or any file name) and put it anywhere in your >app's assets. Then when requiring redactor, instead of <code>//= require redactor-rails</code>, use:</p> </blockquote> <pre><code>//= require redactor-rails/redactor.min //= require path/to/custom/config </code></pre> <p>Works for me. Hope that helps. <a href="https://github.com/SammyLin/redactor-rails/issues/16" rel="nofollow noreferrer">https://github.com/SammyLin/redactor-rails/issues/16</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload