[#369] remove codemirror highlighting

This commit is contained in:
Alexander Machehin 2014-04-29 13:19:08 +06:00
parent 46c3b8cabe
commit 5075486405
4 changed files with 1 additions and 22 deletions

View File

@ -94,8 +94,6 @@ gem 'font-awesome-rails'
gem 'sitemap_generator' gem 'sitemap_generator'
gem 'codemirror-rails', '~> 4.0'
group :production do group :production do
gem "airbrake", '~> 3.1.2' gem "airbrake", '~> 3.1.2'
gem 'bluepill', '~> 0.0.60', require: false gem 'bluepill', '~> 0.0.60', require: false

View File

@ -128,8 +128,6 @@ GEM
activesupport (>= 3.0) activesupport (>= 3.0)
cocaine (0.5.3) cocaine (0.5.3)
climate_control (>= 0.0.3, < 1.0) climate_control (>= 0.0.3, < 1.0)
codemirror-rails (4.0)
railties (>= 3.0, < 5)
coderay (1.1.0) coderay (1.1.0)
coffee-rails (4.0.1) coffee-rails (4.0.1)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
@ -539,7 +537,6 @@ DEPENDENCIES
capistrano capistrano
capistrano_colors capistrano_colors
charlock_holmes (~> 0.6.9) charlock_holmes (~> 0.6.9)
codemirror-rails (~> 4.0)
coffee-rails (~> 4.0.1) coffee-rails (~> 4.0.1)
compass-rails (~> 1.1.6) compass-rails (~> 1.1.6)
creole creole

View File

@ -18,19 +18,4 @@
//= require_tree ./angular-new //= require_tree ./angular-new
//= require loading-bar //= require loading-bar
//= require ng-table
//= require codemirror
// ### TODO require all files in codemirror/modes ###
//= require codemirror/modes/ruby
//= require codemirror/modes/javascript
//= require codemirror/modes/markdown
$(document).ready(function() {
window.CodeMirrorRun = function(code) {
//CodeMirror.runMode(code.innerHTML.replace(/&amp;/gi, '&').replace(/&lt;/gi, '<').replace(/&gt;/gi, '>'), code.className, code);
CodeMirror.runMode(code.innerHTML, 'markdown', code);
}
$('.md_and_cm').each(function (code) { CodeMirrorRun(this); });
});

View File

@ -10,4 +10,3 @@ $navbar-default-link-hover-color: #CEE7FF;
@import "timeline"; @import "timeline";
@import "font-awesome"; @import "font-awesome";
@import "loading-bar"; @import "loading-bar";
@import "codemirror";