Code Monkey home page Code Monkey logo

epic-editor-rails's People

Contributors

adampope avatar bitdeli-chef avatar gadtfly avatar joshuapaling avatar pezholio avatar shanemcd avatar zethussuen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

epic-editor-rails's Issues

Can not access css files in production

HEllo,

I follow your README and it works nice in development mode, but once I pushed to the heroku, it breaks.
I tried locally: RAILS_ENV=production rake
rails s -e production

still the same error.
I changed application.css.erb to application.css.scss.erb and nothing.
I have add production to this list in config/application.rb
Bundler.require *Rails.groups(:assets => %w(development test))
and I got it.

Please update README file for rails 3.2 that does not use scss.

Any hint on how to require themes?

If I try to pass the themes when I create the editor, nothing happens.

Maybe a couple of lines in the README? Would be extra useful.

EDIT: Got it:

options = {
   theme: {
        preview: '/assets/preview/github.css',
        editor: '/assets/editor/epic-dark.css'
   }
}

Contributing with compatibility

Hi!

Firstly, great job with this gem!

How can i help you with this repo?, especially with rails > 5.0 compatibility?

Thanks!

Rails cannot find css assets - im sure its user error but im stuck

Heres what im loading:

<script type="text/javascript" charset="utf-8">
  var opts = {
    container: 'epiceditor',
    clientSideStorage: false,
    theme: {
      base: '/themes/base/epiceditor.css',
      editor: '/themes/editor/epic-dark.css'
    },
    autogrow: true  
    }
  var editor = new EpicEditor(opts).load();
  </script>

application.js

 //= require 'epiceditor'

application.css

 *= require_tree .
 */

@import 'base/epiceditor';  
@import 'preview/bartik';  
@import 'preview/github';  
@import 'preview/preview-dark';  
@import 'editor/epic-dark';  
@import 'editor/epic-light';  

And here are the errors im getting
GET http://localhost:3000/themes/base/epiceditor.css 404 (Not Found) epiceditor.js?body=1:134
GET http://localhost:3000/themes/editor/epic-dark.css 404 (Not Found) epiceditor.js?body=1:134

But it is finding github.css

rails s error output
Started GET "/themes/editor/epic-dark.css" for 127.0.0.1 at 2014-03-23 13:33:52 -0500

ActionController::RoutingError (No route matches [GET] "/themes/editor/epic-dark.css"):
  actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
  activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
  activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
  activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
  railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
  actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
  activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
  railties (4.0.0) lib/rails/engine.rb:511:in `call'
  railties (4.0.0) lib/rails/application.rb:97:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
  /Users/#{user}/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  /Users/#{user}/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  /Users/#{user}/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

repeats for the other missing css file

gemfile

# epic editor
gem 'epic-editor-rails', '~> 0.2.3'
gem 'rspec-rails', '~> 2.14.1'
gem 'capybara', '~> 2.2.1'

The JS is loading properly, and at least one of the css files is loading, but i end up with this:
screen shot 2014-03-23 at 1 47 42 pm

again, i'm sure i'm doing something wrong, but i cant see it and i've been reading everything i can find on google but still dont have a clue.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.