Code Monkey home page Code Monkey logo

codemirror-rails's People

Contributors

bookofgreg avatar fixlr avatar jweir avatar kennyadsl avatar ktaragorn avatar linjunpop avatar nicklamuro avatar pwnall avatar viliampucik avatar vincentwoo 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

codemirror-rails's Issues

How to enable lint?

Doesn't seem to work when adding as addon, what is the correct syntax for application.js?

Failing test with Rails 4.1.4

Hi, I tried to adjust the .gemspec to allow Rails 4.1 and got:

$ bundle exec rake
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:

  * development - set it to false
  * test - set it to false (unless you use a tool that preloads your test environment)
  * production - set it to true

/home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `mass_assignment_sanitizer=' for #<Class:0x00000003167af8> (NoMethodError)
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/railtie.rb:110:in `block (3 levels) in <class:Railtie>'
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/railtie.rb:109:in `each'
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/railtie.rb:109:in `block (2 levels) in <class:Railtie>'
    from /home/strzibny/.gem/ruby/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
    from /home/strzibny/.gem/ruby/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
    from /home/strzibny/.gem/ruby/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
    from /home/strzibny/.gem/ruby/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:44:in `each'
    from /home/strzibny/.gem/ruby/gems/activesupport-4.1.4/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/base.rb:326:in `<module:ActiveRecord>'
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/base.rb:23:in `<top (required)>'
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/relation/predicate_builder.rb:111:in `<class:PredicateBuilder>'
    from /home/strzibny/.gem/ruby/gems/activerecord-4.1.4/lib/active_record/relation/predicate_builder.rb:2:in `<module:ActiveRecord>'

empty default answers

Karina's comment: Perhaps for the questions asking about citizenship etc, we could leave the drop-down blank rather than having it pre-population

CodeMirror.multiplexingMode is not a function

On an existing old rails application now running on codemirror-rails 5.3, that worked before, in current Chrome and Firefox I suddenly get the Javascript error messages

Uncaught TypeError: CodeMirror.multiplexingMode is not a function
Uncaught TypeError: Cannot read property 'startState' of undefined

and the warning

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

I didn't enable anything special and I have currently no idea what's going on here.
Same application on the server with 5.2 has no issues.

No I went back in development to 5.2, but that didn't help.

Any suggestions or ideas welcome!

Missing tags

Could you please push the tags for the latest releases? They are missing in the repository. Thank you.

Change the codemirror-rails gem version numbering

I'm inclined to switch the codemirror-rails version numbers to match CodeMirror proper's stable releases. For example, I would publish codemirror-rails v2.2 to match CodeMirror's recent v2.2, instead of publishing it as codemirror-rails v0.3.3.

The current numbering convention seems pointless for a gem that only changes when the vendored assets change.

Thoughts? Suggestions?

ReferenceError: CodeMirror is not defined

Hey, I have followed your instructions as best I could on Rails 3.2, with the only change that I added the files to the specific view that I needed them in, rather than application.js|css

I do see the below in the source

        <link href="/assets/codemirror.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/codemirror.js" type="text/javascript"></script>
<script src="/assets/codemirror/modes/ruby.js" type="text/javascript"></script>

How ever, firefox dev tools doesnt show the javascript files as loaded, and I am getting the error mentioned in the title.. Is there something I am missing?

Generator not found on rails 4

Hi,

rails generate does not list the generator on rails 4.1 additionally, the generator cannot be found if manually invoked.

Version bump?

Current is 5.31.0, one frozen in the gem 5.16.0. It's been a while.

assets:precompile fails on version 3.12

when I update the gem to gem 'codemirror-rails', '3.12',and then run
rake assets:precompile
it fails with error invalid byte sequence in UTF-8

but it works when I downgrade it back to version 3.02

HTML mode not working

Hey Fixlr - this is an awesome gem so thanks a ton for making this!

I've been using it here: http://www.graf.ly/graph_templates/new. Javascript and CSS works fine. When I try to use mode: "text/html", the mode does not seem to be enabled (plain black text, no smart formatting, etc).

Is this mode not included with codemirror-rails? Or is it supposed to function and something else is wrong?

Code sample:

var myEditor = CodeMirror.fromTextArea($('myEditorTextarea'), { 
    lineNumbers: true,
    mode: 'text/html',
    lineWrapping: true
});

Rails 4

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    codemirror-rails (>= 0) ruby depends on
      railties (~> 3.0) ruby

    rails (= 4.0.0.rc1) ruby depends on
      railties (4.0.0.rc1)

couldn't find file 'codemirror'

Hi,

After installing the gem (tried both via command line and gemfile), and requiring the assets in both application.js and application.css, I get the error:

couldn't find file 'codemirror'

when trying to run

rails generate codemirror:install

I get:

Could not find generator codemirror:install.

Is there any chance that the necessary files aren't getting added installed?

Update vendored assets to 5.0?

Hi, I was trying to figure out why my rails codemirror editor was buggy where the demo editor on the codemirror site is not, when running coffeescript mode on ios safari.

turns out if i just replace codemirror-rails's codemirror.js v4.8 with the current codemirror 5.0, it fixes the problem.

could you please update the version of codemirror.js? if the only files that need to change are codemirror.js and .css, i'd be happy to create a pull request with those changes.

rails 6 support

Hi, trying to update a rails from 5.2 to 6.0 and codemirror-rails is blocking it.

from bundle update rails I get the following error:

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    codemirror-rails was resolved to 5.16.0, which depends on
      railties (< 6.0, >= 3.0)

Include keymap?

Hey, was wondering if you have any intention of including the keymap dir from upstream. Not that it's hard to bring those into a Rails project manually, just seems like it makes sense that this gem would include it.

Thoughts?

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.