File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010 <p >{!! old ($column , $value ) ! !} </p >
1111 </div >
1212
13- <input type =" hidden" name =" {{ $name } }" value =" {{ old ($column , $value ) } }" />
13+ <input id = " input- {{ $id } } " type =" hidden" name =" {{ $name } }" value =" {{ old ($column , $value ) } }" />
1414
1515 @include (' admin::form.help-block' )
1616
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class Editor extends Field
1919 public function render ()
2020 {
2121 $ name = $ this ->formatName ($ this ->column );
22+ $ id = $ this ->formatName ($ this ->id );
2223
2324 $ config = (array ) WangEditor::config ('config ' );
2425
@@ -39,7 +40,7 @@ public function render()
3940Object.assign(editor.customConfig, {$ config })
4041
4142editor.customConfig.onchange = function (html) {
42- $('input[name= $ name ] ').val(html);
43+ $('# input- $ id ').val(html);
4344}
4445editor.create()
4546
You can’t perform that action at this time.
0 commit comments