File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ public function switchEditors(Event $event)
143
143
$ event ->preventDefault ();
144
144
$ event ->stopPropagation ();
145
145
146
- global $ INPUT ;
146
+ global $ INPUT , $ ID ;
147
+ $ ID = $ INPUT ->str ('id ' );
147
148
148
149
if ($ INPUT ->bool ('getJSON ' )) {
149
150
$ text = $ INPUT ->str ('data ' );
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ function toggleEditor() {
122
122
call : 'plugin_prosemirror_switch_editors' ,
123
123
data : window . proseMirrorIsActive ? $jsonField . val ( ) : $textArea . val ( ) ,
124
124
getJSON : window . proseMirrorIsActive ? '0' : '1' ,
125
+ id : JSINFO . id
125
126
} ) . done ( function handleSwitchEditorResponse ( data ) {
126
127
if ( window . proseMirrorIsActive ) {
127
128
showDefaultEditor ( data . text ) ;
You can’t perform that action at this time.
0 commit comments