Skip to content
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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Kan endre fonttyper #1219

wants to merge 18 commits into from

Conversation

ramnav990
Copy link
Contributor

@ramnav990 ramnav990 commented Jan 27, 2025

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?

@ramnav990 ramnav990 requested a review from a team as a code owner January 27, 2025 14:04
};

const switchFontTypeForVariable = (args: {
draft: Draft<LetterEditorState>;
Copy link
Contributor

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] === " ";
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups

Copy link
Contributor

@madsop-nav madsop-nav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bra jobba!

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.

2 participants