Skip to content

Commit

Permalink
Поправил стили
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 14, 2024
1 parent 73665b6 commit 80f73e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/src/components/Editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class Editor {
this.open = open

this.editable = document.createElement('div');
this.editable.id = "note-editor-inner"
this.editable.contentEditable = "true";

this.dropdownObserver = new MutationObserver((records) => {
Expand Down
3 changes: 3 additions & 0 deletions public/src/components/NoteEditor/NoteEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export class NoteEditor extends ScReact.Component<any, any> {
};

closeEditor = () => {
document.getElementById("note-editor-inner").contentEditable = "false"


AppDispatcher.dispatch(NotesActions.CLOSE_FULLSCREEN)

// this.saveNote({id: AppNotesStore.state.selectedNote.id, parent: AppNotesStore.state.selectedNote.parent, note: AppNoteStore.state.note});
Expand Down

0 comments on commit 80f73e4

Please sign in to comment.