-
Notifications
You must be signed in to change notification settings - Fork 2
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
Kan endre fonttyper #1219
base: main
Are you sure you want to change the base?
Kan endre fonttyper #1219
Conversation
…Content & TextContent
Her jukser vi til endringen. Mulig vi må gjøre dette som ved literals
mulig bug med punktlister. Se om vi kan få punktliste PR inn i main først
…witchFontType actions
}; | ||
|
||
const switchFontTypeForVariable = (args: { | ||
draft: Draft<LetterEditorState>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
draft, thisBlock og literalIndex er ikkje i bruk her, er det med vilje at dei er her lell?
|
||
const text = args.literal.editedText ?? args.literal.text; | ||
|
||
const isWhiteSpace = text[cursorPosition] === " "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er det ei reell problemstilling her med tabs, newline og andre måtar å lage whitespace på, eller skjer ikkje det her?
const block = editorState.redigertBrev.blocks[editorState.focus.blockIndex]; | ||
const theContentWeAreOn = block.content[editorState.focus.contentIndex]; | ||
|
||
// console.log("the block:", block); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bra jobba!
cypress bestemte seg for at noen imports ikke var greie nok. Så måtte fikse noen der 🤷
Merk at implementasjon av å endre fonttype på variabler er lagt inn, uten backend støtte. Kanskje vi skal fjerne dette?