function updateTextarea($textarea, $ce, editorView) {
  let markdown = markdownSerializer.serialize(editorView.state.doc);
  if (markdown !== $textarea.val()) {
    $textarea.val(markdown);
    $textarea
      .trigger('keyup')
      .trigger('change');
    // Make a note that cursor needs to be reset. This must happen after
    // the textarea's visibility is restored to work correctly in Firefox.
    $textarea.attr('data-reset-textarea', '');
  }
}
// Serialize RTE content into Markdown and update textarea
Serialize RTE content into Markdown and update textarea
Serialize RTE content into Markdown and update textarea
function updateTextarea($textarea, $ce, editorView) {
  let markdown = markdownSerializer.serialize(editorView.state.doc);
  if (markdown !== $textarea.val()) {
    $textarea.val(markdown);
    $textarea
      .trigger('keyup')
      .trigger('change');
    $textarea.attr('data-reset-textarea', '');
  }
}
function updateTextarea ( $textarea , $ce , editorView ) { let markdown = markdownSerializer . serialize ( editorView . state . doc ) ; if ( markdown !== $textarea . val ( ) ) { $textarea . val ( markdown ) ; $textarea . trigger ( 'keyup' ) . trigger ( 'change' ) ; $textarea . attr ( 'data-reset-textarea' , '' ) ; } }
Serialize RTE content into Markdown and update textarea
Serialize RTE content into Markdown and update textarea
// Make a note that cursor needs to be reset. This must happen after // the textarea's visibility is restored to work correctly in Firefox.