A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: disable wrapping for all lines in codeblocks
Abdullah Attacb644dbea67d
diff --git a/packages/editor/src/extensions/code-block/code-block.ts b/packages/editor/src/extensions/code-block/code-block.tsindex dc2bb501c..ba8cbd075 100644--- a/packages/editor/src/extensions/code-block/code-block.ts+++ b/packages/editor/src/extensions/code-block/code-block.ts@@ -553,7 +553,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({contentDOMFactory: () => {const content = document.createElement("div");content.classList.add("node-content-wrapper");- content.style.whiteSpace = "inherit";+ content.style.whiteSpace = "pre";// caret is not visible if content element width is 0pxcontent.style.minWidth = "20px";return { dom: content };