Skip to content

Commit

Permalink
update editor to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Jan 23, 2024
1 parent 025496c commit 9e86ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/text-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holochain-syn/text-editor",
"version": "0.12.0",
"version": "0.12.1",
"main": "./dist/index.js",
"module": "./dist/index.js",
"files": ["dist"],
Expand Down
1 change: 1 addition & 0 deletions packages/text-editor/src/elements/syn-markdown-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class SynMarkdownEditor extends LitElement {

firstUpdated() {
this.editor = this.editorEl.editor;
this.editor.setOption('lineWrapping', true)

setTimeout(() => {
this.editor.getInputField().click();
Expand Down

0 comments on commit 9e86ca3

Please sign in to comment.