zethussuen / epic-editor-rails Goto Github PK
View Code? Open in Web Editor NEWEpicEditor dropped into Rails
License: MIT License
EpicEditor dropped into Rails
License: MIT License
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.
It worked just fine with Chrome but Firefox and IE didn't properly load editor. I use Windows7.
This link explains the issue>>OscarGodson/EpicEditor#280.
Appreciate any help.
ENV: rails4, ruby 2.1
1, CSS and JS require/import as stated in README
2, created text_area with id epiceditor
in Chrome console
Uncaught TypeError: Cannot read property 'contentDocument' of null
Any idea why this happen?
pretty much nonexistent atm
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'
}
}
Hi!
Firstly, great job with this gem!
How can i help you with this repo?, especially with rails > 5.0 compatibility?
Thanks!
Has this ever been updated?
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.