Skip to content

Commit 49a11bb

Browse files
author
Quan Weiwei
committed
fix var editor name bug
1 parent 3b86550 commit 49a11bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderer/TuiEditorRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function renderEditor(string $id, array $config, string $content = null):
302302
$editorJsScript = sprintf(
303303
'<script class="code-js">' .
304304
'var content = [%s].join("\n");' .
305-
'var editor_%s = new tui.Editor({' .
305+
'var %s = new tui.Editor({' .
306306
'el: document.querySelector("#%s"),' .
307307
'initialEditType: "%s",' .
308308
'previewStyle: "%s",' .

0 commit comments

Comments
 (0)