Skip to content

WIP on byline interface#1

Open
goldenapples wants to merge 7 commits into
feat/byline-interfacefrom
than/byline-interface
Open

WIP on byline interface#1
goldenapples wants to merge 7 commits into
feat/byline-interfacefrom
than/byline-interface

Conversation

@goldenapples

Copy link
Copy Markdown
Collaborator

No description provided.

Replaced the MutationObserver with an event listener, replaced some of
the DOM interaction with a useRef element, and tried to refactor some of
the data getters and setters.
Prevents editing the content in these spans, and makes it so that
deleting (with backspace) will remove the whole span at once rather than
editing within the span.
Updates the "cursorPos" variable logic to use the end of the line if
there's no cursor position set yet, and to add a non-breaking space at
the end of the text if necessary. Also updates the white-space styling
of the editable area, to ensure that users can select any point in the
text they may need to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant