GithubHelp home page GithubHelp logo

nerian / bootstrap-wysihtml5-rails Goto Github PK

View Code? Open in Web Editor NEW
438.0 438.0 262.0 1.18 MB

WYSIWYG editor for Bootstrap, integrated in Rails assets pipeline

Ruby 83.46% JavaScript 2.97% CoffeeScript 0.90% CSS 2.46% HTML 10.20%

bootstrap-wysihtml5-rails's People

Contributors

andrewle avatar anlek avatar cvrebert avatar cymen avatar delynn avatar donapieppo avatar ekremkaraca avatar fr2019 avatar hinrik avatar ikarachristos avatar jhjguxin avatar kieranklaassen avatar nerian avatar roymax avatar russellquinn avatar shpakvel avatar skv-headless avatar taavo avatar tomeduarte avatar zedtux 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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-wysihtml5-rails's Issues

Youtube embed links

I can't paste an embed code into my editor. I get a No Route Error. Any ideas how to overcome this?

File to import not found or unreadable: bootstrap-wysihtml5.

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)

What is the input id?

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?

Capybara testing

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!

Move to central organisation?

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?

In the editor, only Normal text, Bold, Italic, and Underline options are being displayed.

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 :)

http://localhost:3000/img/glyphicons-halflings.png 404 (Not Found)

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?

Indentation icons are inverted

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.

Latest Update Throws IE8 Error

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!

missed locales

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 :(.

Hooking into events

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

Thanks! And a note for the readme

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.

unable to display/render coloured text using the editor

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

Sprockets::CircularDependencyError

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:inbuild_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:incache_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:infind_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:inbuild_dependency_paths'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/set.rb:222:in each' org/jruby/RubyHash.java:1400:ineach_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:inbuild_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:inbuild_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:inbuild_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:incache_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:infind_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:inresolve_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:inresolve_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:ininitialize'
/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:incircular_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:inbuild_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:inbuild_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:infind_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:ineach'
/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:inbuild_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:inbuild_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:inbuild_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:incache_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:infind_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:ininitialize'
/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:inbuild_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:inbuild_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:infind_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:ineach_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:ineach'
/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:ineach_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:ineach_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:incompile'
/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:inexecute'
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:inexecute'
/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:inmon_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:ininvoke'
/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:intop_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:intop_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:intop_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:instandard_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:incall'
/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:insh'
/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:inruby'
/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:ininvoke_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:incall'
/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:ineach'
/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:ininvoke_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:ininvoke_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:ininvoke_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:ineach'
/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:inrun_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:inrun'
/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:inrun'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/bin/rake:33:in (root)' org/jruby/RubyKernel.java:1101:inload'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake:1:in (root)' org/jruby/RubyKernel.java:1121:ineval'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/jruby_executable_hooks:15:in `(root)'
Tasks: TOP => assets:precompile

TypeError: rangy.getSelection is not a function

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.

Not working with html_safe and raw

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

screenshot from 2013-07-03 03 17 05

Also see results with "raw". You can clearly see that html tags are still visible.

screenshot from 2013-07-03 03 19 16

Any help??

I'm using Rails 4 now.

Thanks

Cant see glypicons in production mode Rails 4

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.

Editor not showing changes

I installed bootstrap-wysihtml5-rails, with the corresponding additions in aplication.css.scss, application.js and the model's form but I'm not seeing changes in the app, only html code
github2
github

any help would be helpful, thanks.

Adds stylesheet link for wysiwyg-color.css

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.

Read only

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]

Nesting differnt list types

When you make a nested list (especially of another type) you must do:

  • blah
    1. blah
ul>
  li>blah
    ol>
      li>blah /li>
    /ol>
  /li>
/ul>

Where right now it's producing:

  • blah
    1. blah
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?

Textarea css sometimes doesn't render the right way

Hi

Sometimes the iframe doesn't render the right css and doesn't look like the Twitter Bootstrap one.

http://grab.by/h76i

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?

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.