Sha256: c756fd3873789848bf3c6bd2eaee987d9548f89d313bd94acb775d91f6dbf3b0
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
<%- base_path = '' base_path << if ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank? "http://localhost:3000" else "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}" end base_path << Rails.application.config.assets.prefix base_path << '/ckeditor/' %> <script> ckeditor_bpath = '<%= base_path %>'; console.log(ckeditor_bpath) if (typeof(CKEDITOR) != 'undefined') { CKEDITOR.editorConfig = function( config ) { config.base_location = ckeditor_bpath // config.toolbar = 'Basic'; // config.toolbar_Basic = // [ // ['Source', 'Bold', 'Italic', 'NumberedList', 'BulletedList', 'Link', 'Unlink'] // ]; // config.enterMode = CKEDITOR.ENTER_BR; // config.shiftEnterMode = CKEDITOR.ENTER_BR; // config.autoParagraph = false; } } </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_ui_layout_taris-1.2.19 | app/views/layouts/rails_admin/_ckeditor_base_path.html.erb |