fix: super note improvements (#1991)
* fix: super note previews * fix; checkmark size * fix: top padding * fix: prevent delete shortcut * fix: spellcheck control * fix: only embed file if uploaded to current note * fix: ability to create new tag from editor autocomplete * feat: protected file embed handling * fix: event payload
This commit is contained in:
7
packages/blocks-editor/src/Editor/Utils.ts
Normal file
7
packages/blocks-editor/src/Editor/Utils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function truncateString(string: string, limit: number) {
|
||||
if (string.length <= limit) {
|
||||
return string;
|
||||
} else {
|
||||
return string.substring(0, limit) + '...';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user