We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afe2f7 commit 39cdcfdCopy full SHA for 39cdcfd
resources/views/editor.blade.php
@@ -9,7 +9,7 @@
9
10
<div id="{{$id}}" style="width: 100%; height: 100%;"></div>
11
12
- <input type="hidden" name="{{$name}}" value="{{ old($column, $value) }}" />
+ <input type="hidden" id="{{$id}}_input" name="{{$name}}" value="{{ old($column, $value) }}" />
13
@include('admin::form.help-block')
14
15
</div>
src/Editor.php
@@ -47,7 +47,7 @@ public function render()
47
// get json
48
$('button[type="submit"]').click(function() {
49
var json = editor.get()
50
-$('input[name={$this->id}]').val(JSON.stringify(json))
+$('input[id={$this->id}_input]').val(JSON.stringify(json))
51
})
52
EOT;
53
0 commit comments