mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
share specific file for site editor share button
This commit is contained in:
parent
43ea7a7ed7
commit
759e5500ed
3 changed files with 14 additions and 10 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue