nerian / bootstrap-wysihtml5-rails Goto Github PK
View Code? Open in Web Editor NEWWYSIWYG editor for Bootstrap, integrated in Rails assets pipeline
WYSIWYG editor for Bootstrap, integrated in Rails assets pipeline
I followed the instructions on the README and everything seems to be working fine except for displaying the buttons on the editor. As the title says, the only options that are visible are: "Normal text, Bold, Italic, and Underline". When I hover my mouse over to the right of the last option being displayed, it is a clickable region. Why can I do to make sure that the editor is properly being displayed?
I am using the anjlab/bootstrap-rails gem and my text area is wrapped in a div with class "form-group". The text-area in questino also has class "form-control" (removing the class didn't affect whether the other options from the editor were being displayed or not.
What can I do? Thank you :)
My add a link modal is stuck in the background and when i click on it, it disappears.
https://skitch.com/karlbaum/eweda/3811-turtle-creek-blvd-21st-floor-suite-2100
Not sure if i am missing a js lib or maybe one of my existing libs is wrong version or conflicting.
thx!
Could you do a release with an updated bootstrap-wysihtml5? It fixes a layout issue and makes links and all the buttons actually work.
Hi,
I'm using first time "bootstrap-wysihtml5-rails". Before i was on ckeditor and both of these tags working fine with ckeditor. But not this case with bootstrap-wysihtml5-rails.
See screenshot of my form
Also see results with "raw". You can clearly see that html tags are still visible.
Any help??
I'm using Rails 4 now.
Thanks
I can see all icons (ul, outdent link) in dev mode but not in prod. mode:
gem 'rails', '4.0.0'
gem 'bootstrap-generators', '~> 2.3'
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
gem 'bootstrap-wysihtml5-rails'
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap
//= require_tree .
Any idea where to check? Thanks for your work.
I think the name of the file, the the comment, and the translation are wrong. This file should be remove...
I'm unable to display/render the text colour after upgrading to 0.3.1.11 (It still works in 0.3.1.10) in the editor.
I use the installation instructions from the readme.
I think it has something to do with the asset path change in on of the latest commits.
Does anyone have the same issue?
Kind regards,
Johan
Is this still consistent with using https://github.com/anjlab/bootstrap-rails or has something broken? I've followed these directions but get this error when I try to require bootstrap-button
Can you update bootstrap-wysihtml5?
I'm looking to use the font-awesome option for the toolbar (https://github.com/Waxolunist/bootstrap3-wysihtml5-bower#font-awesome)
Hello,
I installed the gem using
gem 'bootstrap-wysihtml5-rails', :require => 'bootstrap-wysihtml5-rails', :git => 'git://github.com/Nerian/bootstrap-wysihtml5-rails.git'
I followed the other instructions as well.
I can do $('textarea').wysihtml5();
and everything works as expected except that the glyphicons-halflings.png is not found so some of the buttons are blank. It looks like the image isn't making it into the asset pipeline or maybe the path is wrong... I haven't dug into it too much yet.
Any thoughts?
Hey,
For some reason when I run my rails app in production mode. Its still looking for wysiwyg-color.css
instead of using the compiled version in my application.css. I think it might have to do with this line here.
Hello everybody,
I am trying to hook into the events with some strange results.
This is what I got to integrate the editor:
function integrate_wysihtml5() {
var editor = $('.wysihtml5').each(function(i, elem) {
$(elem).wysihtml5({
"font-styles": false, //Font styling, e.g. h1, h2, etc. Default true
"emphasis": true, //Italics, bold, etc. Default true
"lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
"html": false, //Button which allows you to edit the generated HTML. Default false
"link": false, //Button to insert a link. Default true
"image": false, //Button to insert an image. Default true,
"color": false //Button to change color of font
});
});
function onChange() { alert("The content of the editor has changed"); };
editor.on("change", onChange);
}
The change event is not fired at all, if I change it to 'blur' it is called several times when I am loading the page, but not when I click out of the Editor.
Many thanks
Marcus
Hello guys,
I have a Rails 4rc1 application with multiple engines. I'm using this gem in my admin engine. According to documentation I added gem 'bootstrap-wysihtml5-rails'
to admin engine's Gemfile. Then when I add @import 'bootstrap-wysihtml5'
to admin engine's application.scss
. I get below errors:
File to import not found or unreadable: bootstrap-wysihtml5.
Load paths:
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/coffee-rails-4.0.0/lib/assets/javascripts
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/font-awesome-sass-rails-3.0.2.2/app/assets/fonts
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/font-awesome-sass-rails-3.0.2.2/app/assets/stylesheets
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/bootstrap-sass-2.3.1.0/vendor/assets/images
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/bootstrap-sass-2.3.1.0/vendor/assets/javascripts
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/bootstrap-sass-2.3.1.0/vendor/assets/stylesheets
It seems like my application.scss
can't find bootstrap-wysihtml5
. But why? I don't have any idea :( By the way JavaScript is working fine. And here is the my environments:
Gems included by the bundle:
* actionmailer (4.0.0.rc1)
* actionpack (4.0.0.rc1)
* activemodel (4.0.0.rc1)
* activerecord (4.0.0.rc1)
* activerecord-deprecated_finders (1.0.2)
* activesupport (4.0.0.rc1)
* addressable (2.3.4)
* admin (0.0.1)
* arel (4.0.0)
* atomic (1.1.8)
* bcrypt-ruby (3.0.1)
* bootstrap-sass (2.3.1.0)
* bootstrap-wysihtml5-rails (0.3.1.20)
* builder (3.1.4)
* bundler (1.3.5)
* capybara (2.1.0)
* carrierwave (0.8.0)
* coffee-rails (4.0.0)
* coffee-script (2.2.0)
* coffee-script-source (1.6.2)
* core (0.0.1)
* diff-lcs (1.2.4)
* erubis (2.7.0)
* execjs (1.4.0)
* factory_girl (4.2.0)
* factory_girl_rails (4.2.1)
* ffaker (1.16.1)
* font-awesome-sass-rails (3.0.2.2)
* hike (1.2.2)
* i18n (0.6.4)
* jquery-rails (2.2.1)
* kaminari (0.14.1)
* launchy (2.3.0)
* letter_opener (1.1.1)
* mail (2.5.3)
* mime-types (1.23)
* mini_magick (3.6.0)
* minitest (4.7.3)
* multi_json (1.7.2)
* nokogiri (1.5.9)
* pg (0.15.1)
* polyglot (0.3.3)
* rack (1.5.2)
* rack-test (0.6.2)
* rails (4.0.0.rc1)
* railties (4.0.0.rc1)
* rake (10.0.4)
* rspec-core (2.13.1)
* rspec-expectations (2.13.0)
* rspec-mocks (2.13.1)
* rspec-rails (2.13.2)
* sass (3.2.8)
* sass-rails (4.0.0.rc1)
* shoulda-matchers (2.1.0)
* simplecov (0.8.0.pre)
* simplecov-html (0.7.1)
* sprockets (2.9.3)
* sprockets-rails (2.0.0.rc4)
* state_machine (1.2.0)
* subexec (0.2.3)
* thor (0.18.1)
* thread_safe (0.1.0)
* tilt (1.3.7)
* treetop (1.4.12)
* tzinfo (0.3.37)
* upsert (1.2.0)
* warden (1.2.1)
* xpath (2.0.0)
Options as described doesn't work.
Do you have instructions/guide on how to integrate this gem with Carrierwave to configure image uploads to Amazon S3?
Hello, thanks for this gem. Russian translations lack translations of formatBlock, there is not translate for h4, h5, h6 options. Also, i looked at translates of other languages and they have same problem.
I can contribute russuian locale. Also, i think i can configure this via wysihtml5() call, but cant find solution :(.
I can't paste an embed code into my editor. I get a No Route Error. Any ideas how to overcome this?
https://github.com/twbs/bootstrap-sass is the main bootstrap for rails gem, and the version of bootstrap that bootstrap-wysihtml5-rails uses is outdated
A simple update will do it.
We upgraded to the latest version, 0.3.2.100, and an error is being thrown in IE8. IE8 throws an error on a line being used in the latest bootstrap3-wysihtml5.js.
delete l.class
I'm trying to find out where this JS is originating from, so I can better understand what repo this issue belongs to. Any guidance would be appreciated. Thanks!
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/lib/css/wysiwyg-color.css
The wysiwyg-color.css is located in asset path which is not accessible by /lib/css.
Since jhollingworth has bowed out of supporting his original version have you looked at switching to this version? It seems the most active.
https://github.com/Waxolunist/bootstrap3-wysihtml5-bower
When adding this editor I'm getting "lib/css/wysiwyg-color.css 404 (Not Found)" JS-error.
Version 0.3.1.1
TypeError: rangy.getSelection is not a function
[Break On This Error]
return rangy.getSelection(this.doc.defaultView || this.doc.parentWindow);
Does anybody get this error?
I assume this error started happening as soon as I turned on my turbolinks.
Do I need to require assets?
do I need to do something else to add the text editor buttons?
And what version of rails and ruby ca I use it with?
Thanks in advance! Keep up the good work!
Cheers
I am using this gem and I feel the need to add anchor text to the links y insert for aesthetic purposes!
thanks
I am getting this same issue Voog/wysihtml#54
I've got has no method 'wysihtml5' when using Rails 3.2.13, twitter-bootstrap-rails and bootstrap-wysihtml5-rails 0.3.1.20. And below my application.js :
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require bootstrap-wysihtml5
//= require_tree .
Same error shown on http://jsfiddle.net/5UUrg/
In the gemspec you point to a different project.
See https://rubygems.org/gems/bootstrap-wysihtml5-rails and click on homepage.
edit do
field :content, :text do
bootstrap_wysihtml5 true
end
end
that's my code on model.rb but still it just textarea not texteditor
Hi!
I am the maintainer of three gems similar to this one that make it easier to use Twitter Bootstrap in Ruby projects (https://github.com/krautcomputing/rails-bootstrap-navbar, https://github.com/krautcomputing/bootstrap-navbar, https://github.com/krautcomputing/middleman-bootstrap-navbar).
I was thinking about moving all those gems to a separate organisation (like "bootstrap-ruby") and wanted to get some feedback from other maintainers of similar gems (and the community at large) if that makes sense and if we could use this to make it easier for people to find gems to work with Bootstrap in Ruby (Rails, Sinatra, etc.)
I think it would also invite other people to contribute to those projects if they were united in a central organisation.
What do you think?
Would you be willing to move this repo to such an organisation as well?
Sorry if wrong place to ask this but need help (really new at this)...
Trying to set instance of textarea to "read only" so user can click on urls and links in text area. Hiding menu buttons successfully as follows, but need help with read only:
<script type="text/javascript"> $('.wysihtml5').each(function(i, elem) { $(elem).wysihtml5({ "image": false, "font-styles": false, "link": false, "emphasis": false, "lists": false }); }); </script>Thanks,
[email protected]
hi,
I am trying to tie BS3 from https://github.com/seyhunak/twitter-bootstrap-rails together with your wysihtml5 editor but cannot get the glyphicons to work. seyhunak's BS3 gem uses fontawesome by default but I already switched it to use the standard BS3 glyphicons but still no luck. Any help appreciated!
Any chance you can use jspiro's fork of bootstrap-wysihtml5 for BS3 support?
Here is the pull request: jhollingworth/bootstrap-wysihtml5#279 (comment)
And the actual repo: https://github.com/artillery/bootstrap-wysihtml5
Actually the "outdent" button uses icon-indent-right, which clearly represents an action of pushing the text to the right side. The same goes with the "ident" button that has an icon representing the opposite action.
If you check the official demo of bootstrap-wysihtml5 you'll see that the buttons are correct.
Hi! Thanks to you and jhollingworth for bringing wysihtml5 to rails!
I had trouble with one item so I thought I'd mention it as a suggestion for the readme.md file.
Perhaps its obvious to people but I forgot I had to restart my rails dev server after doing a bundle install to get this gem to work. (it kept throwing a not found error for the css asset before the restart.)
Maybe one line saying "You may need to restart your rails server" might be helpful for people.
To conform with the security model of wysihtml5 we would like to do server-side whitelists of elements and attributes. We are considering using the Sanitize gem (https://github.com/rgrove/sanitize/). Is there a recommended whitelist that we could base our rules on?
Hey, I've just done a few updates to bootstrap-wysihtml5 and bumped the version to 0.0.2.
I've also added this project to the readme file https://github.com/jhollingworth/bootstrap-wysihtml5 :)
I noticed when i click the button to insert a link, 'body' is at the bottom. maybe this is a wysihtml5 thing? or maybe its just me?
Hello,
I'm using this editor for rails_admin. It worked fine but after re-compile assets. The toolbar weirdly doubled.
This is how it looks for now: See screenshot: http://cl.ly/image/250A2n331V08
Hope someone has found some work around for this.
Getting Sprockets::CircularDependencyError on version 0.3.1.24.
Using Rails 3.2.17
JRuby 1.7.11
Mac OSX
Seems to work fine with previous releases.
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/bxiong/.rvm/rubies/jruby-1.7.11/bin/jruby /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Invoke assets:cache:clean (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Execute assets:cache:clean
** Execute assets:precompile:all
rake aborted!
Sprockets::CircularDependencyError: /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/bootstrap-wysihtml5-rails-0.3.1.24/vendor/assets/stylesheets/bootstrap-wysihtml5/wysiwyg-color.css has already been required
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:268:in circular_call_protection' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in
cache_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:121:in
build_dependency_paths'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/set.rb:222:in each' org/jruby/RubyHash.java:1400:in
each_key'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/set.rb:222:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:118:in
build_dependency_paths'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/unprocessed_asset.rb:29:in initialize' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:16:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:271:in circular_call_protection' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in
cache_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:94:in
resolve_dependencies'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:90:in
resolve_dependencies'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:81:in build_required_assets' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/unprocessed_asset.rb:28:in
initialize'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:16:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:271:in
circular_call_protection'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in cache_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:96:in resolve_dependencies' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:90:in resolve_dependencies' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:81:in
build_required_assets'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/unprocessed_asset.rb:28:in initialize' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:16:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:271:in circular_call_protection' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in
cache_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/bundled_asset.rb:12:in
initialize'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:22:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in cache_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:32:in compile' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in
each_logical_path'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in each_file' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in each_entry' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in
each_file'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in
each_file'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in each_logical_path' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:29:in
compile'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:108:in internal_precompile' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:115:in
(root)'
org/jruby/RubyProc.java:271:in call' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:240:in
execute'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:235:in
execute'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:179:in invoke_with_call_chain' /Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/monitor.rb:211:in
mon_synchronize'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:172:in invoke_with_call_chain' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:165:in
invoke'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:150:in invoke_task' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in
top_level'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in
top_level'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:115:in run_with_threads' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:100:in
top_level'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:78:in run' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:176:in
standard_exception_handling'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:75:in run' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/bin/rake:33:in
(root)'
org/jruby/RubyKernel.java:1101:in load' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake:23:in
(root)'
Tasks: TOP => assets:precompile:all
rake aborted!
Command failed with status (1): [/Users/bxiong/.rvm/rubies/jruby-1.7.11/bin...]
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils.rb:55:in create_shell_runner' org/jruby/RubyProc.java:271:in
call'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils.rb:45:in sh' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils_ext.rb:41:in
sh'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils.rb:82:in ruby' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils_ext.rb:41:in
ruby'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:24:in ruby_rake_task' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:33:in
invoke_or_reboot_rake_task'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:50:in (root)' org/jruby/RubyProc.java:271:in
call'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:240:in execute' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:235:in execute' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:179:in
invoke_with_call_chain'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/monitor.rb:211:in mon_synchronize' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:172:in
invoke_with_call_chain'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:165:in invoke' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:150:in
invoke_task'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in top_level' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in top_level' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:115:in
run_with_threads'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:100:in top_level' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:78:in
run'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:176:in standard_exception_handling' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:75:in
run'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/bin/rake:33:in (root)' org/jruby/RubyKernel.java:1101:in
load'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake:1:in (root)' org/jruby/RubyKernel.java:1121:in
eval'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/jruby_executable_hooks:15:in `(root)'
Tasks: TOP => assets:precompile
When you make a nested list (especially of another type) you must do:
ul>
li>blah
ol>
li>blah /li>
/ol>
/li>
/ul>
Where right now it's producing:
ul>
li>blah /li>
ol>
li>blah /li>
/ol>
/ul>
sorry for using weird syntax but the code won't mark down even when I indent it by 4 spaces.
This issue is causing my emails to all parse incorrectly when I using the 2 different types of lists together. Any way around this?
It'd be awesome if you could pull in the fix to permit Youtube videos to be embedded. I gave it a shot but couldn't quite figure it out.
Here's a reference
elzos/bootstrap-wysihtml5@fc37019
Hi
Sometimes the iframe doesn't render the right css and doesn't look like the Twitter Bootstrap one.
If I reload the page a couple of times I can see it working but in some other I can't.
Also if I open the firebug on chrome the css it doesn't work.
Any ideas on how I can solve this problem?
I would like to focus on the input field, something like:
$("#post_body").focus();
but like this it doesn't work, 'cause the id of my field gets replaced by your gem. Is there a workaround?
How do you text the editor with capybara or similar? I tried setting the value of the input field where I render the editor, but it looks like its actual value is not being changed, so it doesn't send the parameter value to the server.
Is there a way to hook into the editor to set the value with capybara?
Thanks for your great job on this!
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.