Added the ability to do codemirror true on a text field and have a codem... #1164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sorry about the one before forgot to add a topic branch and rebase everything. Tested again with "bundle exec rake spec" and worked fine.
These commits should allow for something like this.
requires
https://github.com/fixlr/codemirror-rails
The commits also add the following options for setting up ckeditor.
Then for Codemirror the options are
Some Notes:
I had to remove @import "bootstrap/code"; from imports.css.scss.erb because it was conflicting with the basic code mirror styling.
I have tested
Both still work with one or more instances.
I have though had a tough time testing the configs I added. I guess I must not be setting them correctly or something because I can't get them to be anything but the default.
Inspired by:
The following issue posted by https://github.com/kennyadsl
#871
Implementation via binding on a project I worked a little bit on with
https://github.com/nthj
I hope this helps!