Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(md): editor not editable in skeleton state (#4145)

Seamusf0c8c018cb1d
diff --git a/js/app/packages/block-md/component/MarkdownEditor.tsx b/js/app/packages/block-md/component/MarkdownEditor.tsx
index 2d8b1d059e..6b7e7ac8f0 100644
--- a/js/app/packages/block-md/component/MarkdownEditor.tsx
+++ b/js/app/packages/block-md/component/MarkdownEditor.tsx
@@ -274,11 +274,12 @@ export function MarkdownEditor(props: {
createEffect(() => {
// We still want the editor to be locked down (for certain things like click events on check
// lists) when the user does not have editor access.
- editor.setEditable(canEdit() || canComment());
+ editor.setEditable(editorReady() && (canEdit() || canComment()));
});
const isContentEditable = createMemo(() => {
return (
+ editorReady() &&
(canEdit() ?? false) &&
!isGenerating() &&
!generatedAndWaiting() &&
@@ -754,7 +755,7 @@ export function MarkdownEditor(props: {
createEffect(() => {
// We still want the editor to be locked down (for certain things like click events on check
// lists) when the user does not have editor access.
- editor.setEditable(canEdit() ?? false);
+ editor.setEditable(editorReady() && (canEdit() ?? false));
});
plugins.useReactive(