1- import { EDITOR_BASE_SETUP } from '@codeimage/config' ;
1+ import {
2+ EDITOR_BASE_SETUP ,
3+ SUPPORTED_LANGUAGES ,
4+ SUPPORTED_THEMES ,
5+ } from '@codeimage/config' ;
26import { editor$ , setFocus } from '@codeimage/store/editor' ;
37import { EditorView , lineNumbers } from '@codemirror/view' ;
48import { debounceTime , ReplaySubject , takeUntil } from 'rxjs' ;
@@ -10,17 +14,18 @@ import {
1014 createResource ,
1115 onCleanup ,
1216} from 'solid-js' ;
13- import { appEnvironment } from '../../core/configuration' ;
17+ import { SUPPORTED_FONTS } from '../../core/configuration/font ' ;
1418import { fromObservableObject } from '../../core/hooks/from-observable-object' ;
1519import { focusedEditor$ , setCode } from '../../state/editor' ;
1620import { createCustomFontExtension } from './custom-font-extension' ;
1721import { observeFocusExtension } from './observe-focus-extension' ;
1822
1923export const CustomEditor = ( ) => {
2024 let editorEl ! : HTMLDivElement ;
21-
2225 const destroy$ = new ReplaySubject < void > ( 1 ) ;
23- const { languages, themes, fonts} = appEnvironment ;
26+ const themes = SUPPORTED_THEMES ;
27+ const languages = SUPPORTED_LANGUAGES ;
28+ const fonts = SUPPORTED_FONTS ;
2429 const editor = fromObservableObject ( editor$ ) ;
2530
2631 const selectedLanguage = createMemo ( ( ) =>
0 commit comments