mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-12 08:18:49 +08:00
feat: add color palette.
This commit is contained in:
@@ -3,6 +3,7 @@ import { useContext } from 'react';
|
||||
import { EditorView } from '@codemirror/view';
|
||||
import { Preview } from './Preview';
|
||||
import { copy } from '../../commands/copy';
|
||||
import { colorCommand } from '../../commands/color';
|
||||
import { theme as themeCommand, previeTheme } from '../../commands/theme';
|
||||
import { cssCommand } from '../../commands/css';
|
||||
import { Context, themes } from '../../store/context';
|
||||
@@ -18,7 +19,7 @@ export const HomePage = () => {
|
||||
toolbars={commands}
|
||||
theme={themeValue}
|
||||
readOnly={isLoading}
|
||||
toolbarsMode={[cssCommand, previeTheme, copy, 'fullscreen', 'preview']}
|
||||
toolbarsMode={[cssCommand, previeTheme, copy, colorCommand, 'fullscreen', 'preview']}
|
||||
extensions={[EditorView.lineWrapping]}
|
||||
renderPreview={Preview}
|
||||
previewWidth="420px"
|
||||
|
||||
Reference in New Issue
Block a user