Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(ui): Refactor editor theme and add line wrapping functionality

robin8497f6b65e80
diff --git a/ui/src/components/Editor/utils/index.ts b/ui/src/components/Editor/utils/index.ts
index bf273dd4..e39e3e91 100644
--- a/ui/src/components/Editor/utils/index.ts
+++ b/ui/src/components/Editor/utils/index.ts
@@ -83,7 +83,6 @@ export const useEditor = ({
const theme = EditorView.theme(
{
'&': {
- width: '100%',
height: '100%',
},
'&.cm-focused': {
@@ -111,6 +110,7 @@ export const useEditor = ({
}),
theme,
placeholder(placeholderText),
+ EditorView.lineWrapping,
],
});