basic monaco editor setup

This commit is contained in:
BanceDev 2024-09-30 09:44:22 -04:00
parent 47edba24dc
commit 165e17f844
467 changed files with 40 additions and 328148 deletions

View file

@ -194,7 +194,7 @@ get '/site_files/text_editor' do
@filename = params[:filename]
extname = File.extname @filename
@ace_mode = case extname
@monaco_mode = case extname
when /htm|html/ then 'html'
when /js/ then 'javascript'
when /md/ then 'markdown'
@ -267,4 +267,4 @@ post '/site_files/chat' do
out << buffer
end
end
end
end