share specific file for site editor share button

This commit is contained in:
Kyle Drake 2015-03-23 21:12:02 -07:00
parent 43ea7a7ed7
commit 759e5500ed
3 changed files with 14 additions and 10 deletions

View file

@ -111,7 +111,6 @@ get %r{\/site_files\/text_editor\/(.+)} do
require_login
@filename = params[:captures].first
extname = File.extname @filename
@ace_mode = case extname
when /htm|html/ then 'html'
when /js/ then 'javascript'