Skip to content

Commit 2c93d76

Browse files
authored
Merge pull request #2 from DissNik/master
setValue at init
2 parents e8c71cd + 3a1d5d1 commit 2c93d76

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)