MCPcopy Create free account
hub / github.com/toeverything/AFFiNE / inlineEditorInnerTextToString

Function inlineEditorInnerTextToString

tests/kit/src/utils/editor.ts:13–15  ·  view source on GitHub ↗
(innerText: string)

Source from the content-addressed store, hash-verified

11 process.env.BROWSER === 'webkit' ? '\u200C' : '\u200B';
12
13export function inlineEditorInnerTextToString(innerText: string): string {
14 return innerText.replace(ZERO_WIDTH_FOR_EMPTY_LINE, '').trim();
15}
16
17const PARAGRAPH_BLOCK_LOCATOR = 'affine-paragraph';
18const CODE_BLOCK_LOCATOR = 'affine-code';

Callers 1

assertTitleFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected