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)
143143 $ event ->preventDefault ();
144144 $ event ->stopPropagation ();
145145
146- global $ INPUT ;
146+ global $ INPUT , $ ID ;
147+ $ ID = $ INPUT ->str ('id ' );
147148
148149 if ($ INPUT ->bool ('getJSON ' )) {
149150 $ text = $ INPUT ->str ('data ' );
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ function toggleEditor() {
122122 call : 'plugin_prosemirror_switch_editors' ,
123123 data : window . proseMirrorIsActive ? $jsonField . val ( ) : $textArea . val ( ) ,
124124 getJSON : window . proseMirrorIsActive ? '0' : '1' ,
125+ id : JSINFO . id
125126 } ) . done ( function handleSwitchEditorResponse ( data ) {
126127 if ( window . proseMirrorIsActive ) {
127128 showDefaultEditor ( data . text ) ;
You can’t perform that action at this time.
0 commit comments