Add CodeMirror based Highlighted editor (#325)

# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description

![highlightedEditor](https://github.com/kwaroran/RisuAI/assets/18527479/17aa1b99-39b8-48c4-98b4-0c0e20dc1a44)

I have added an editor and settings that highlight asterisks, quotes,
and backticks, similar to AutoMark, using a CodeMirror-based editor.

1. Added the CodeMirror5 package
2. Added language and settings for "useAdvancedEditor"
3. Wrote AdvancedChatEditor.svelte

Thank you for your hard work on the project.
This commit is contained in:
kwaroran
2024-03-25 02:26:22 +09:00
committed by GitHub
10 changed files with 187 additions and 2 deletions

View File

@@ -604,6 +604,7 @@ export interface Database{
requestInfoInsideChat?:boolean
additionalParams:[string, string][]
heightMode:string
useAdvancedEditor:boolean
}
export interface customscript{