-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Richtexteditor formats #141
base: dev
Are you sure you want to change the base?
Commits on Jul 4, 2024
-
feat(quill): make it easier to put cursor at the start of lines
Paragraph symbols were catching clicks.
Configuration menu - View commit details
-
Copy full SHA for 285ba61 - Browse repository at this point
Copy the full SHA 285ba61View commit details -
fix(quill): keep notes in document flow by making them inline
When inline-block, a second cursor `slot` is created after the note node.
Configuration menu - View commit details
-
Copy full SHA for 2be8784 - Browse repository at this point
Copy the full SHA 2be8784View commit details -
refactor(DocumentNotes): Make deleting notes safer
By not relying on regexps and by using DOM queries instead.
Configuration menu - View commit details
-
Copy full SHA for b79dfef - Browse repository at this point
Copy the full SHA b79dfefView commit details -
refactor(NoteActions): Make removing notes form note modal safer
There is code duplication between this and DocumentNotes.
Configuration menu - View commit details
-
Copy full SHA for 3f998f6 - Browse repository at this point
Copy the full SHA 3f998f6View commit details -
feat(Modal): make Modals accept html
Otherwise titles containing fa icons are not rendered.
Configuration menu - View commit details
-
Copy full SHA for c3c7ef2 - Browse repository at this point
Copy the full SHA c3c7ef2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a647cc - Browse repository at this point
Copy the full SHA 2a647ccView commit details -
feat: ensure notes and page break are stored as embed blots and simpl…
…ify keyboard navigation There is a lot of stuff in there. Main changes: RichTextEditor is now initialized with its initial value props. After that, it is not controlled and only sends its new value to its parent component in the hierarchy. NoteForm is updated so that the first time it is rendered, the RichTextEditor value props is already defined. Before this change, the editor was populated on second render, after the call to the mounted lifecycle hook. Components that take input data as propse now expect a single data structure as prop. For example, NoteForm `inputData` prop could be either {note: {id: number}} or {formats: {note: {id: number}}, leading to big conditionals. A lot of imperative logic is transformed into more functional logic by using computed component state. This is the case for example for the way the "activeness" of the buttons is computed. We remove the `updateButtons` method from the RichTextEditor and instead compute the buttons availability from the component's current state on render. Notes and Page breaks are transformed into embeds to avoid hard to maintain logic to ensure that their inner text are not modified. This allow us to write specific keyboard and mouse handlers for these elements the embeds are selected on click ot when navigating over them with keyboard. A new `remove format` button is added in the RichTextEditor which allows to ensure that the text going to be typed will not be formatted. A new icon should be chosen for this button as it is currently the same as "stroked text"/"del" button.
Configuration menu - View commit details
-
Copy full SHA for e781bdb - Browse repository at this point
Copy the full SHA e781bdbView commit details