Merge branch 'dev' into feat/onedrive-file-attach

This commit is contained in:
Timothy Jaeryang Baek
2025-02-24 11:51:59 -08:00
committed by GitHub
6 changed files with 513 additions and 508 deletions

View File

@@ -464,8 +464,8 @@
onSave={() => {
saveCode();
}}
onChange={(e) => {
_code = e;
onChange={(value) => {
_code = value;
}}
/>
</div>

View File

@@ -88,14 +88,14 @@
code={token?.text ?? ''}
{attributes}
{save}
onCode={(e) => {
dispatch('code', e);
onCode={(value) => {
dispatch('code', value);
}}
onSave={(e) => {
dispatch('update', {
raw: token.raw,
oldContent: token.text,
newContent: e
newContent: value
});
}}
/>

View File

@@ -79,7 +79,7 @@
});
_value = formattedCode;
onChange({ value: _value });
onChange(_value);
await tick();
toast.success($i18n.t('Code formatted successfully'));
@@ -98,7 +98,7 @@
EditorView.updateListener.of((e) => {
if (e.docChanged) {
_value = e.state.doc.toString();
onChange({ value: _value });
onChange(_value);
}
}),
editorTheme.of([]),

File diff suppressed because it is too large Load Diff

View File

@@ -35,6 +35,11 @@
button {
@apply cursor-pointer;
}
input::placeholder,
textarea::placeholder {
color: theme(--color-gray-400);
}
}
@custom-variant hover (&:hover);