Skip to content

Commit 3a1d5d1

Browse files
committed
fix: setValue at init
1 parent 30e54b2 commit 3a1d5d1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

public/init.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/init.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ document.addEventListener('alpine:init', () => {
1111
config.options ?? {}
1212
);
1313

14+
this.editor.session.setValue(this.textarea.value)
15+
1416
this.editor.session.setMode(`ace/mode/${config.language ?? 'javascript'}`)
1517

1618
this.setTheme()

0 commit comments

Comments
 (0)