@blocknote/core 0.24.1 → 0.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote.js +1300 -956
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +6 -6
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +2 -2
- package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +36 -14
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +7 -5
- package/src/extensions/SideMenu/SideMenuPlugin.ts +22 -9
- package/src/extensions/UniqueID/UniqueID.ts +8 -3
- package/src/i18n/locales/index.ts +1 -0
- package/src/i18n/locales/it.ts +6 -0
- package/src/i18n/locales/no.ts +323 -0
- package/src/util/browser.ts +1 -1
- package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +1 -1
- package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +1 -0
- package/types/src/i18n/locales/index.d.ts +1 -0
- package/types/src/i18n/locales/it.d.ts +6 -0
- package/types/src/i18n/locales/no.d.ts +2 -0
- package/types/src/util/browser.d.ts +1 -1
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":1740045297289,"assets":[{"name":"blocknote.umd.cjs","size":256008},{"name":"blocknote.umd.cjs.map","size":936301}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote.umd.cjs"],"names":["index"]}],"modules":[{"name":"./src/i18n/locales/ar.ts","size":6971,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/de.ts","size":7609,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":7041,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/es.ts","size":7479,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/fr.ts","size":8209,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/hr.ts","size":7382,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/is.ts","size":7266,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/it.ts","size":7395,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ja.ts","size":6686,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ko.ts","size":6483,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/nl.ts","size":7486,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pl.ts","size":7184,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pt.ts","size":7409,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ru.ts","size":8073,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/uk.ts","size":8022,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/vi.ts","size":7318,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/zh.ts","size":6425,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/util/typescript.ts","size":331,"chunks":["a1ee98a"]},{"name":"./src/extensions/UniqueID/UniqueID.ts","size":8887,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/types.ts","size":302,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":6137,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":5122,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":886,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":3264,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3648,"chunks":["a1ee98a"]},{"name":"./src/api/nodeUtil.ts","size":490,"chunks":["a1ee98a"]},{"name":"./src/util/browser.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":1755,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultProps.ts","size":269,"chunks":["a1ee98a"]},{"name":"./src/util/string.ts","size":299,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/internal.ts","size":4130,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/createSpec.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":7897,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/internal.ts","size":1398,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":2739,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/internal.ts","size":1162,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/createSpec.ts","size":1263,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseFigureElement.ts","size":342,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts","size":1725,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.ts","size":753,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.ts","size":307,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.ts","size":294,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/parseAudioElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/AudioBlockContent.ts","size":3155,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/defaultSupportedLanguages.ts","size":1707,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/CodeBlockContent.ts","size":9104,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts","size":854,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorMark.ts","size":946,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorMark.ts","size":866,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/FileBlockContent.ts","size":1460,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":4725,"chunks":["a1ee98a"]},{"name":"./src/blocks/HeadingBlockContent/HeadingBlockContent.ts","size":3418,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.ts","size":4637,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/parseImageElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/ImageBlockContent.ts","size":3243,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":868,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts","size":1429,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts","size":3415,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts","size":7148,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts","size":2207,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts","size":4427,"chunks":["a1ee98a"]},{"name":"./src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts","size":1434,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableExtension.ts","size":2275,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableBlockContent.ts","size":4223,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/parseVideoElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/VideoBlockContent.ts","size":3162,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlocks.ts","size":1147,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":1580,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":6735,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteSchema.ts","size":1044,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/schema.ts","size":350,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.ts","size":534,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":316,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":1141,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5693,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":2324,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":2533,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts","size":123,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":2452,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1120,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":4698,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts","size":2880,"chunks":["a1ee98a"]},{"name":"./src/util/esmDependencies.ts","size":820,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/removeUnderlinesRehypePlugin.ts","size":752,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":969,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":837,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2174,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":503,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1097,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":115,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":3576,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":884,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":661,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":1552,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":859,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":5228,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorExtension.ts","size":791,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/createCollaborationExtensions.ts","size":3773,"chunks":["a1ee98a"]},{"name":"./src/util/EventEmitter.ts","size":744,"chunks":["a1ee98a"]},{"name":"./src/extensions/FilePanel/FilePanelPlugin.ts","size":3584,"chunks":["a1ee98a"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts","size":5240,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3228,"chunks":["a1ee98a"]},{"name":"./src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":14774,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/LinkToolbarPlugin.ts","size":7557,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":172,"chunks":["a1ee98a"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts","size":1195,"chunks":["a1ee98a"]},{"name":"./src/extensions/Placeholder/PlaceholderPlugin.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts","size":4820,"chunks":["a1ee98a"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":404,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1616,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4482,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/SideMenuPlugin.ts","size":13888,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/SuggestionPlugin.ts","size":8070,"chunks":["a1ee98a"]},{"name":"./src/extensions/TableHandles/TableHandlesPlugin.ts","size":19400,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextAlignment/TextAlignmentExtension.ts","size":928,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorExtension.ts","size":725,"chunks":["a1ee98a"]},{"name":"./src/extensions/TrailingNode/TrailingNodeExtension.ts","size":1563,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":2038,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1102,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":90,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteExtensions.ts","size":4416,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":2604,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteTipTapEditor.ts","size":3732,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":26795,"chunks":["a1ee98a"]},{"name":"./src/editor/defaultColors.ts","size":1193,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":1075,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":197,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":700,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":550,"chunks":["a1ee98a"]},{"name":"./src/api/testUtil/partialBlockTestUtil.ts","size":3149,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]}]}
|
|
1
|
+
{"builtAt":1740756852708,"assets":[{"name":"blocknote.umd.cjs","size":261510},{"name":"blocknote.umd.cjs.map","size":949535}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote.umd.cjs"],"names":["index"]}],"modules":[{"name":"./src/i18n/locales/ar.ts","size":6971,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/de.ts","size":7609,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":7041,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/es.ts","size":7479,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/fr.ts","size":8209,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/hr.ts","size":7382,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/is.ts","size":7266,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/it.ts","size":7583,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ja.ts","size":6686,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ko.ts","size":6483,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/nl.ts","size":7486,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/no.ts","size":7371,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pl.ts","size":7184,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pt.ts","size":7409,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ru.ts","size":8073,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/uk.ts","size":8022,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/vi.ts","size":7318,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/zh.ts","size":6425,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/util/typescript.ts","size":331,"chunks":["a1ee98a"]},{"name":"./src/extensions/UniqueID/UniqueID.ts","size":9054,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/types.ts","size":302,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":6137,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":5122,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":886,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":3264,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3648,"chunks":["a1ee98a"]},{"name":"./src/api/nodeUtil.ts","size":490,"chunks":["a1ee98a"]},{"name":"./src/util/browser.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":1755,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultProps.ts","size":269,"chunks":["a1ee98a"]},{"name":"./src/util/string.ts","size":299,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/internal.ts","size":4130,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/createSpec.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":7897,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/internal.ts","size":1398,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":2739,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/internal.ts","size":1162,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/createSpec.ts","size":1263,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseFigureElement.ts","size":342,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts","size":1725,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.ts","size":753,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.ts","size":307,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.ts","size":294,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/parseAudioElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/AudioBlockContent.ts","size":3155,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/defaultSupportedLanguages.ts","size":1707,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/CodeBlockContent.ts","size":9104,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts","size":854,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorMark.ts","size":946,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorMark.ts","size":866,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/FileBlockContent.ts","size":1460,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":4725,"chunks":["a1ee98a"]},{"name":"./src/blocks/HeadingBlockContent/HeadingBlockContent.ts","size":3418,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.ts","size":4637,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/parseImageElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/ImageBlockContent.ts","size":3243,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":868,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts","size":1429,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts","size":3415,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts","size":7148,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts","size":2207,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts","size":4427,"chunks":["a1ee98a"]},{"name":"./src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts","size":1434,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableExtension.ts","size":2275,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableBlockContent.ts","size":4223,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/parseVideoElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/VideoBlockContent.ts","size":3162,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlocks.ts","size":1147,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":1580,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":6763,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteSchema.ts","size":1044,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/schema.ts","size":350,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":316,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":1141,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5693,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":2324,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":2533,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts","size":123,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":2452,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1120,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":4698,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts","size":2880,"chunks":["a1ee98a"]},{"name":"./src/util/esmDependencies.ts","size":820,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/removeUnderlinesRehypePlugin.ts","size":752,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":969,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":837,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2174,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":503,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1097,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":115,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":3917,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":884,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":661,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":1552,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":859,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":5228,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorExtension.ts","size":791,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/createCollaborationExtensions.ts","size":3773,"chunks":["a1ee98a"]},{"name":"./src/util/EventEmitter.ts","size":744,"chunks":["a1ee98a"]},{"name":"./src/extensions/FilePanel/FilePanelPlugin.ts","size":3584,"chunks":["a1ee98a"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts","size":5268,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3228,"chunks":["a1ee98a"]},{"name":"./src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":14774,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/LinkToolbarPlugin.ts","size":7557,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":172,"chunks":["a1ee98a"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts","size":1195,"chunks":["a1ee98a"]},{"name":"./src/extensions/Placeholder/PlaceholderPlugin.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts","size":4820,"chunks":["a1ee98a"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":404,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1616,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4482,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/SideMenuPlugin.ts","size":14087,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/SuggestionPlugin.ts","size":8070,"chunks":["a1ee98a"]},{"name":"./src/extensions/TableHandles/TableHandlesPlugin.ts","size":19400,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextAlignment/TextAlignmentExtension.ts","size":928,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorExtension.ts","size":725,"chunks":["a1ee98a"]},{"name":"./src/extensions/TrailingNode/TrailingNodeExtension.ts","size":1563,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":2038,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1102,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":90,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteExtensions.ts","size":4416,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":2604,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteTipTapEditor.ts","size":3732,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":26795,"chunks":["a1ee98a"]},{"name":"./src/editor/defaultColors.ts","size":1193,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":1075,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":197,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":700,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":550,"chunks":["a1ee98a"]},{"name":"./src/api/testUtil/partialBlockTestUtil.ts","size":3149,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]}]}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"*.css"
|
|
7
7
|
],
|
|
8
8
|
"license": "MPL-2.0",
|
|
9
|
-
"version": "0.24.
|
|
9
|
+
"version": "0.24.2",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"types",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"access": "public",
|
|
125
125
|
"registry": "https://registry.npmjs.org/"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "129f51b459753139ee0a4c441b4479f83fd7314d"
|
|
128
128
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PartialBlock } from "../../../blocks/defaultBlocks.js";
|
|
1
|
+
import { Block, PartialBlock } from "../../../blocks/defaultBlocks.js";
|
|
2
2
|
import type { BlockNoteEditor } from "../../../editor/BlockNoteEditor";
|
|
3
3
|
import {
|
|
4
4
|
BlockSchema,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
InlineContentSchema,
|
|
7
7
|
StyleSchema,
|
|
8
8
|
} from "../../../schema/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { getNearestBlockPos } from "../../getBlockInfoFromPos.js";
|
|
10
10
|
import { acceptedMIMETypes } from "./acceptedMIMETypes.js";
|
|
11
11
|
|
|
12
12
|
function checkFileExtensionsMatch(
|
|
@@ -41,6 +41,33 @@ function checkMIMETypesMatch(mimeType1: string, mimeType2: string) {
|
|
|
41
41
|
return types1[0] === types2[0] && types1[1] === types2[1];
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
function insertOrUpdateBlock<
|
|
45
|
+
BSchema extends BlockSchema,
|
|
46
|
+
I extends InlineContentSchema,
|
|
47
|
+
S extends StyleSchema
|
|
48
|
+
>(
|
|
49
|
+
editor: BlockNoteEditor<BSchema, I, S>,
|
|
50
|
+
referenceBlock: Block<BSchema, I, S>,
|
|
51
|
+
newBlock: PartialBlock<BSchema, I, S>
|
|
52
|
+
) {
|
|
53
|
+
let insertedBlockId: string | undefined;
|
|
54
|
+
|
|
55
|
+
if (
|
|
56
|
+
Array.isArray(referenceBlock.content) &&
|
|
57
|
+
referenceBlock.content.length === 0
|
|
58
|
+
) {
|
|
59
|
+
insertedBlockId = editor.updateBlock(referenceBlock, newBlock).id;
|
|
60
|
+
} else {
|
|
61
|
+
insertedBlockId = editor.insertBlocks(
|
|
62
|
+
[newBlock],
|
|
63
|
+
referenceBlock,
|
|
64
|
+
"after"
|
|
65
|
+
)[0].id;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return insertedBlockId;
|
|
69
|
+
}
|
|
70
|
+
|
|
44
71
|
export async function handleFileInsertion<
|
|
45
72
|
BSchema extends BlockSchema,
|
|
46
73
|
I extends InlineContentSchema,
|
|
@@ -120,11 +147,8 @@ export async function handleFileInsertion<
|
|
|
120
147
|
let insertedBlockId: string | undefined = undefined;
|
|
121
148
|
|
|
122
149
|
if (event.type === "paste") {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
editor.getTextCursorPosition().block,
|
|
126
|
-
"after"
|
|
127
|
-
)[0].id;
|
|
150
|
+
const currentBlock = editor.getTextCursorPosition().block;
|
|
151
|
+
insertedBlockId = insertOrUpdateBlock(editor, currentBlock, fileBlock);
|
|
128
152
|
} else if (event.type === "drop") {
|
|
129
153
|
const coords = {
|
|
130
154
|
left: (event as DragEvent).clientX,
|
|
@@ -141,13 +165,11 @@ export async function handleFileInsertion<
|
|
|
141
165
|
pos.pos
|
|
142
166
|
);
|
|
143
167
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"after"
|
|
150
|
-
)[0].id;
|
|
168
|
+
insertedBlockId = insertOrUpdateBlock(
|
|
169
|
+
editor,
|
|
170
|
+
editor.getBlock(posInfo.node.attrs.id)!,
|
|
171
|
+
fileBlock
|
|
172
|
+
);
|
|
151
173
|
} else {
|
|
152
174
|
return;
|
|
153
175
|
}
|
|
@@ -67,7 +67,7 @@ export class FormattingToolbarView implements PluginView {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
pmView.dom.addEventListener("mousedown", this.viewMousedownHandler);
|
|
70
|
-
pmView.
|
|
70
|
+
pmView.root.addEventListener("mouseup", this.mouseupHandler);
|
|
71
71
|
pmView.dom.addEventListener("dragstart", this.dragHandler);
|
|
72
72
|
pmView.dom.addEventListener("dragover", this.dragHandler);
|
|
73
73
|
pmView.dom.addEventListener("blur", this.blurHandler);
|
|
@@ -113,9 +113,11 @@ export class FormattingToolbarView implements PluginView {
|
|
|
113
113
|
this.preventShow = true;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
this.preventShow
|
|
118
|
-
|
|
116
|
+
mouseupHandler = () => {
|
|
117
|
+
if (this.preventShow) {
|
|
118
|
+
this.preventShow = false;
|
|
119
|
+
setTimeout(() => this.update(this.pmView));
|
|
120
|
+
}
|
|
119
121
|
};
|
|
120
122
|
|
|
121
123
|
// For dragging the whole editor.
|
|
@@ -193,7 +195,7 @@ export class FormattingToolbarView implements PluginView {
|
|
|
193
195
|
|
|
194
196
|
destroy() {
|
|
195
197
|
this.pmView.dom.removeEventListener("mousedown", this.viewMousedownHandler);
|
|
196
|
-
this.pmView.
|
|
198
|
+
this.pmView.root.removeEventListener("mouseup", this.mouseupHandler);
|
|
197
199
|
this.pmView.dom.removeEventListener("dragstart", this.dragHandler);
|
|
198
200
|
this.pmView.dom.removeEventListener("dragover", this.dragHandler);
|
|
199
201
|
this.pmView.dom.removeEventListener("blur", this.blurHandler);
|
|
@@ -178,6 +178,11 @@ export class SideMenuView<
|
|
|
178
178
|
this.onDrop as EventListener,
|
|
179
179
|
true
|
|
180
180
|
);
|
|
181
|
+
this.pmView.root.addEventListener(
|
|
182
|
+
"dragend",
|
|
183
|
+
this.onDragEnd as EventListener,
|
|
184
|
+
true
|
|
185
|
+
);
|
|
181
186
|
initializeESMDependencies();
|
|
182
187
|
|
|
183
188
|
// Shows or updates menu position whenever the cursor moves, if the menu isn't frozen.
|
|
@@ -300,8 +305,8 @@ export class SideMenuView<
|
|
|
300
305
|
// a block from a different editor is being dropped, this causes some
|
|
301
306
|
// issues that the code below fixes:
|
|
302
307
|
if (!this.isDragOrigin && this.pmView.dom === parentEditorElement) {
|
|
303
|
-
//
|
|
304
|
-
//
|
|
308
|
+
// Because the editor selection is unrelated to the dragged content, we
|
|
309
|
+
// don't want PM to delete its content. Therefore, we collapse the
|
|
305
310
|
// selection.
|
|
306
311
|
this.pmView.dispatch(
|
|
307
312
|
this.pmView.state.tr.setSelection(
|
|
@@ -312,8 +317,8 @@ export class SideMenuView<
|
|
|
312
317
|
)
|
|
313
318
|
);
|
|
314
319
|
} else if (this.isDragOrigin && this.pmView.dom !== parentEditorElement) {
|
|
315
|
-
//
|
|
316
|
-
//
|
|
320
|
+
// Because the editor from which the block originates doesn't get a drop
|
|
321
|
+
// event on it, PM doesn't delete its selected content. Therefore, we
|
|
317
322
|
// need to do so manually.
|
|
318
323
|
//
|
|
319
324
|
// Note: Deleting the selected content from the editor from which the
|
|
@@ -328,11 +333,6 @@ export class SideMenuView<
|
|
|
328
333
|
0
|
|
329
334
|
);
|
|
330
335
|
}
|
|
331
|
-
// 3. PM only clears `view.dragging` on the editor that the block was
|
|
332
|
-
// dropped, so we manually have to clear it on all the others. However,
|
|
333
|
-
// PM also needs to read `view.dragging` while handling the event, so we
|
|
334
|
-
// use a `setTimeout` to ensure it's only cleared after that.
|
|
335
|
-
setTimeout(() => (this.pmView.dragging = null), 0);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
if (
|
|
@@ -360,6 +360,14 @@ export class SideMenuView<
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
|
|
363
|
+
onDragEnd = () => {
|
|
364
|
+
// When the user starts dragging a block, `view.dragging` is set on all
|
|
365
|
+
// BlockNote editors. However, when the drag ends, only the editor that the
|
|
366
|
+
// drag originated in automatically clears `view.dragging`. Therefore, we
|
|
367
|
+
// have to manually clear it on all editors.
|
|
368
|
+
this.pmView.dragging = null;
|
|
369
|
+
};
|
|
370
|
+
|
|
363
371
|
/**
|
|
364
372
|
* If a block is being dragged, ProseMirror usually gets the context of what's
|
|
365
373
|
* being dragged from `view.dragging`, which is automatically set when a
|
|
@@ -580,6 +588,11 @@ export class SideMenuView<
|
|
|
580
588
|
this.onDrop as EventListener,
|
|
581
589
|
true
|
|
582
590
|
);
|
|
591
|
+
this.pmView.root.removeEventListener(
|
|
592
|
+
"dragend",
|
|
593
|
+
this.onDragEnd as EventListener,
|
|
594
|
+
true
|
|
595
|
+
);
|
|
583
596
|
this.pmView.root.removeEventListener(
|
|
584
597
|
"keydown",
|
|
585
598
|
this.onKeyDown as EventListener,
|
|
@@ -252,8 +252,9 @@ const UniqueID = Extension.create({
|
|
|
252
252
|
};
|
|
253
253
|
},
|
|
254
254
|
props: {
|
|
255
|
-
// `handleDOMEvents` is called before `transformPasted`
|
|
256
|
-
//
|
|
255
|
+
// `handleDOMEvents` is called before `transformPasted` so we can do
|
|
256
|
+
// some checks before. However, `transformPasted` only runs when
|
|
257
|
+
// editor content is pasted - not external content.
|
|
257
258
|
handleDOMEvents: {
|
|
258
259
|
// only create new ids for dropped content while holding `alt`
|
|
259
260
|
// or content is dragged from another editor
|
|
@@ -265,9 +266,13 @@ const UniqueID = Extension.create({
|
|
|
265
266
|
? void 0
|
|
266
267
|
: _a.effectAllowed) === "copy"
|
|
267
268
|
) {
|
|
268
|
-
dragSourceElement = null;
|
|
269
269
|
transformPasted = true;
|
|
270
|
+
} else {
|
|
271
|
+
transformPasted = false;
|
|
270
272
|
}
|
|
273
|
+
|
|
274
|
+
dragSourceElement = null;
|
|
275
|
+
|
|
271
276
|
return false;
|
|
272
277
|
},
|
|
273
278
|
// always create new ids on pasted content
|
package/src/i18n/locales/it.ts
CHANGED
|
@@ -56,6 +56,12 @@ export const it = {
|
|
|
56
56
|
aliases: ["code", "pre"],
|
|
57
57
|
group: "Blocchi Base",
|
|
58
58
|
},
|
|
59
|
+
page_break: {
|
|
60
|
+
title: "Interruzione di Pagina",
|
|
61
|
+
subtext: "Separatore di pagina",
|
|
62
|
+
aliases: ["pagina", "interruzione", "separatore"],
|
|
63
|
+
group: "Blocchi base",
|
|
64
|
+
},
|
|
59
65
|
table: {
|
|
60
66
|
title: "Tabella",
|
|
61
67
|
subtext: "Tabella con celle modificabili",
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
|
+
|
|
3
|
+
export const no: Dictionary = {
|
|
4
|
+
slash_menu: {
|
|
5
|
+
heading: {
|
|
6
|
+
title: "Overskrift 1",
|
|
7
|
+
subtext: "Toppnivåoverskrift",
|
|
8
|
+
aliases: ["h", "overskrift1", "h1"],
|
|
9
|
+
group: "Overskrifter",
|
|
10
|
+
},
|
|
11
|
+
heading_2: {
|
|
12
|
+
title: "Overskrift 2",
|
|
13
|
+
subtext: "Hovedseksjonsoverskrift",
|
|
14
|
+
aliases: ["h2", "overskrift2", "underoverskrift"],
|
|
15
|
+
group: "Overskrifter",
|
|
16
|
+
},
|
|
17
|
+
heading_3: {
|
|
18
|
+
title: "Overskrift 3",
|
|
19
|
+
subtext: "Underseksjon og gruppeoverskrift",
|
|
20
|
+
aliases: ["h3", "overskrift3", "underoverskrift"],
|
|
21
|
+
group: "Overskrifter",
|
|
22
|
+
},
|
|
23
|
+
numbered_list: {
|
|
24
|
+
title: "Nummerert liste",
|
|
25
|
+
subtext: "Liste med ordnede elementer",
|
|
26
|
+
aliases: ["ol", "li", "liste", "nummerertliste", "nummerert liste"],
|
|
27
|
+
group: "Grunnleggende blokker",
|
|
28
|
+
},
|
|
29
|
+
bullet_list: {
|
|
30
|
+
title: "Punktliste",
|
|
31
|
+
subtext: "Liste med uordnede elementer",
|
|
32
|
+
aliases: ["ul", "li", "liste", "punktliste", "punkt liste"],
|
|
33
|
+
group: "Grunnleggende blokker",
|
|
34
|
+
},
|
|
35
|
+
check_list: {
|
|
36
|
+
title: "Sjekkliste",
|
|
37
|
+
subtext: "Liste med avmerkingsbokser",
|
|
38
|
+
aliases: [
|
|
39
|
+
"ul",
|
|
40
|
+
"li",
|
|
41
|
+
"liste",
|
|
42
|
+
"sjekkliste",
|
|
43
|
+
"sjekk liste",
|
|
44
|
+
"avmerket liste",
|
|
45
|
+
"avmerkingsboks",
|
|
46
|
+
],
|
|
47
|
+
group: "Grunnleggende blokker",
|
|
48
|
+
},
|
|
49
|
+
paragraph: {
|
|
50
|
+
title: "Avsnitt",
|
|
51
|
+
subtext: "Hoveddelen av dokumentet ditt",
|
|
52
|
+
aliases: ["p", "avsnitt"],
|
|
53
|
+
group: "Grunnleggende blokker",
|
|
54
|
+
},
|
|
55
|
+
code_block: {
|
|
56
|
+
title: "Kodeblokk",
|
|
57
|
+
subtext: "Kodeblokk med syntaksfremheving",
|
|
58
|
+
aliases: ["kode", "pre"],
|
|
59
|
+
group: "Grunnleggende blokker",
|
|
60
|
+
},
|
|
61
|
+
page_break: {
|
|
62
|
+
title: "Sideskift",
|
|
63
|
+
subtext: "Sideskilletegn",
|
|
64
|
+
aliases: ["side", "skift", "skilletegn"],
|
|
65
|
+
group: "Grunnleggende blokker",
|
|
66
|
+
},
|
|
67
|
+
table: {
|
|
68
|
+
title: "Tabell",
|
|
69
|
+
subtext: "Tabell med redigerbare celler",
|
|
70
|
+
aliases: ["tabell"],
|
|
71
|
+
group: "Avansert",
|
|
72
|
+
},
|
|
73
|
+
image: {
|
|
74
|
+
title: "Bilde",
|
|
75
|
+
subtext: "Justerbart bilde med bildetekst",
|
|
76
|
+
aliases: [
|
|
77
|
+
"bilde",
|
|
78
|
+
"bildeopplasting",
|
|
79
|
+
"opplasting",
|
|
80
|
+
"img",
|
|
81
|
+
"bilde",
|
|
82
|
+
"media",
|
|
83
|
+
"url",
|
|
84
|
+
],
|
|
85
|
+
group: "Media",
|
|
86
|
+
},
|
|
87
|
+
video: {
|
|
88
|
+
title: "Video",
|
|
89
|
+
subtext: "Justerbar video med bildetekst",
|
|
90
|
+
aliases: [
|
|
91
|
+
"video",
|
|
92
|
+
"videoopplasting",
|
|
93
|
+
"opplasting",
|
|
94
|
+
"mp4",
|
|
95
|
+
"film",
|
|
96
|
+
"media",
|
|
97
|
+
"url",
|
|
98
|
+
],
|
|
99
|
+
group: "Media",
|
|
100
|
+
},
|
|
101
|
+
audio: {
|
|
102
|
+
title: "Lyd",
|
|
103
|
+
subtext: "legg til lyd med bildetekst",
|
|
104
|
+
aliases: [
|
|
105
|
+
"lyd",
|
|
106
|
+
"lydopplasting",
|
|
107
|
+
"opplasting",
|
|
108
|
+
"mp3",
|
|
109
|
+
"lyd",
|
|
110
|
+
"media",
|
|
111
|
+
"url",
|
|
112
|
+
],
|
|
113
|
+
group: "Media",
|
|
114
|
+
},
|
|
115
|
+
file: {
|
|
116
|
+
title: "Fil",
|
|
117
|
+
subtext: "Innebygd fil",
|
|
118
|
+
aliases: ["fil", "opplasting", "innebygd", "media", "url"],
|
|
119
|
+
group: "Media",
|
|
120
|
+
},
|
|
121
|
+
emoji: {
|
|
122
|
+
title: "Emoji",
|
|
123
|
+
subtext: "Søk etter og legg til en emoji",
|
|
124
|
+
aliases: ["emoji", "emote", "emosjon", "ansikt"],
|
|
125
|
+
group: "Andre",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
placeholders: {
|
|
129
|
+
default: "Skriv tekst eller skriv '/' for å vise kommandoer",
|
|
130
|
+
heading: "Overskrift",
|
|
131
|
+
bulletListItem: "Liste",
|
|
132
|
+
numberedListItem: "Liste",
|
|
133
|
+
checkListItem: "Liste",
|
|
134
|
+
},
|
|
135
|
+
file_blocks: {
|
|
136
|
+
image: {
|
|
137
|
+
add_button_text: "Legg til bilde",
|
|
138
|
+
},
|
|
139
|
+
video: {
|
|
140
|
+
add_button_text: "Legg til video",
|
|
141
|
+
},
|
|
142
|
+
audio: {
|
|
143
|
+
add_button_text: "Legg til lyd",
|
|
144
|
+
},
|
|
145
|
+
file: {
|
|
146
|
+
add_button_text: "Legg til fil",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
side_menu: {
|
|
150
|
+
add_block_label: "Legg til blokk",
|
|
151
|
+
drag_handle_label: "Åpne blokkmeny",
|
|
152
|
+
},
|
|
153
|
+
drag_handle: {
|
|
154
|
+
delete_menuitem: "Slett",
|
|
155
|
+
colors_menuitem: "Farger",
|
|
156
|
+
},
|
|
157
|
+
table_handle: {
|
|
158
|
+
delete_column_menuitem: "Slett kolonne",
|
|
159
|
+
delete_row_menuitem: "Slett rad",
|
|
160
|
+
add_left_menuitem: "Legg til kolonne til venstre",
|
|
161
|
+
add_right_menuitem: "Legg til kolonne til høyre",
|
|
162
|
+
add_above_menuitem: "Legg til rad over",
|
|
163
|
+
add_below_menuitem: "Legg til rad under",
|
|
164
|
+
},
|
|
165
|
+
suggestion_menu: {
|
|
166
|
+
no_items_title: "Ingen elementer funnet",
|
|
167
|
+
loading: "Laster…",
|
|
168
|
+
},
|
|
169
|
+
color_picker: {
|
|
170
|
+
text_title: "Tekst",
|
|
171
|
+
background_title: "Bakgrunn",
|
|
172
|
+
colors: {
|
|
173
|
+
default: "Standard",
|
|
174
|
+
gray: "Grå",
|
|
175
|
+
brown: "Brun",
|
|
176
|
+
red: "Rød",
|
|
177
|
+
orange: "Oransje",
|
|
178
|
+
yellow: "Gul",
|
|
179
|
+
green: "Grønn",
|
|
180
|
+
blue: "Blå",
|
|
181
|
+
purple: "Lilla",
|
|
182
|
+
pink: "Rosa",
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
formatting_toolbar: {
|
|
186
|
+
bold: {
|
|
187
|
+
tooltip: "Fet",
|
|
188
|
+
secondary_tooltip: "Mod+B",
|
|
189
|
+
},
|
|
190
|
+
italic: {
|
|
191
|
+
tooltip: "Kursiv",
|
|
192
|
+
secondary_tooltip: "Mod+I",
|
|
193
|
+
},
|
|
194
|
+
underline: {
|
|
195
|
+
tooltip: "Understrek",
|
|
196
|
+
secondary_tooltip: "Mod+U",
|
|
197
|
+
},
|
|
198
|
+
strike: {
|
|
199
|
+
tooltip: "Gjennomstrek",
|
|
200
|
+
secondary_tooltip: "Mod+Shift+S",
|
|
201
|
+
},
|
|
202
|
+
code: {
|
|
203
|
+
tooltip: "Kode",
|
|
204
|
+
secondary_tooltip: "",
|
|
205
|
+
},
|
|
206
|
+
colors: {
|
|
207
|
+
tooltip: "Farger",
|
|
208
|
+
},
|
|
209
|
+
link: {
|
|
210
|
+
tooltip: "Opprett lenke",
|
|
211
|
+
secondary_tooltip: "Mod+K",
|
|
212
|
+
},
|
|
213
|
+
file_caption: {
|
|
214
|
+
tooltip: "Rediger bildetekst",
|
|
215
|
+
input_placeholder: "Rediger bildetekst",
|
|
216
|
+
},
|
|
217
|
+
file_replace: {
|
|
218
|
+
tooltip: {
|
|
219
|
+
image: "Bytt ut bilde",
|
|
220
|
+
video: "Bytt ut video",
|
|
221
|
+
audio: "Bytt ut lyd",
|
|
222
|
+
file: "Bytt ut fil",
|
|
223
|
+
} as Record<string, string>,
|
|
224
|
+
},
|
|
225
|
+
file_rename: {
|
|
226
|
+
tooltip: {
|
|
227
|
+
image: "Endre navn på bilde",
|
|
228
|
+
video: "Endre navn på video",
|
|
229
|
+
audio: "Endre navn på lyd",
|
|
230
|
+
file: "Endre navn på fil",
|
|
231
|
+
} as Record<string, string>,
|
|
232
|
+
input_placeholder: {
|
|
233
|
+
image: "Endre navn på bilde",
|
|
234
|
+
video: "Endre navn på video",
|
|
235
|
+
audio: "Endre navn på lyd",
|
|
236
|
+
file: "Endre navn på fil",
|
|
237
|
+
} as Record<string, string>,
|
|
238
|
+
},
|
|
239
|
+
file_download: {
|
|
240
|
+
tooltip: {
|
|
241
|
+
image: "Last ned bilde",
|
|
242
|
+
video: "Last ned video",
|
|
243
|
+
audio: "Last ned lyd",
|
|
244
|
+
file: "Last ned fil",
|
|
245
|
+
} as Record<string, string>,
|
|
246
|
+
},
|
|
247
|
+
file_delete: {
|
|
248
|
+
tooltip: {
|
|
249
|
+
image: "Slett bilde",
|
|
250
|
+
video: "Slett video",
|
|
251
|
+
audio: "Slett lyd",
|
|
252
|
+
file: "Slett fil",
|
|
253
|
+
} as Record<string, string>,
|
|
254
|
+
},
|
|
255
|
+
file_preview_toggle: {
|
|
256
|
+
tooltip: "Veksle forhåndsvisning",
|
|
257
|
+
},
|
|
258
|
+
nest: {
|
|
259
|
+
tooltip: "Plasser blokk inni",
|
|
260
|
+
secondary_tooltip: "Tab",
|
|
261
|
+
},
|
|
262
|
+
unnest: {
|
|
263
|
+
tooltip: "Ta blokk ut",
|
|
264
|
+
secondary_tooltip: "Shift+Tab",
|
|
265
|
+
},
|
|
266
|
+
align_left: {
|
|
267
|
+
tooltip: "Venstrejuster tekst",
|
|
268
|
+
},
|
|
269
|
+
align_center: {
|
|
270
|
+
tooltip: "Midtstill tekst",
|
|
271
|
+
},
|
|
272
|
+
align_right: {
|
|
273
|
+
tooltip: "Høyrejuster tekst",
|
|
274
|
+
},
|
|
275
|
+
align_justify: {
|
|
276
|
+
tooltip: "Juster tekst",
|
|
277
|
+
},
|
|
278
|
+
comment: {
|
|
279
|
+
tooltip: "Legg til kommentar",
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
file_panel: {
|
|
283
|
+
upload: {
|
|
284
|
+
title: "Last opp",
|
|
285
|
+
file_placeholder: {
|
|
286
|
+
image: "Last opp bilde",
|
|
287
|
+
video: "Last opp video",
|
|
288
|
+
audio: "Last opp lyd",
|
|
289
|
+
file: "Last opp fil",
|
|
290
|
+
} as Record<string, string>,
|
|
291
|
+
upload_error: "Feil: Opplasting mislyktes",
|
|
292
|
+
},
|
|
293
|
+
embed: {
|
|
294
|
+
title: "Bygg inn",
|
|
295
|
+
embed_button: {
|
|
296
|
+
image: "Bygg inn bilde",
|
|
297
|
+
video: "Bygg inn video",
|
|
298
|
+
audio: "Bygg inn lyd",
|
|
299
|
+
file: "Bygg inn fil",
|
|
300
|
+
} as Record<string, string>,
|
|
301
|
+
url_placeholder: "Skriv inn URL",
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
link_toolbar: {
|
|
305
|
+
delete: {
|
|
306
|
+
tooltip: "Fjern lenke",
|
|
307
|
+
},
|
|
308
|
+
edit: {
|
|
309
|
+
text: "Rediger lenke",
|
|
310
|
+
tooltip: "Rediger",
|
|
311
|
+
},
|
|
312
|
+
open: {
|
|
313
|
+
tooltip: "Åpne i ny fane",
|
|
314
|
+
},
|
|
315
|
+
form: {
|
|
316
|
+
title_placeholder: "Rediger tittel",
|
|
317
|
+
url_placeholder: "Rediger URL",
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
generic: {
|
|
321
|
+
ctrl_shortcut: "Ctrl",
|
|
322
|
+
},
|
|
323
|
+
};
|