src/js/wysiwygCommands/codeBlock.js
function focusToFirstCode($pre, wwe) {
  const range = wwe.getEditor().getSelection().cloneRange();
  $pre.removeClass(CODEBLOCK_CLASS_TEMP);

  range.setStartBefore($pre.get(0).firstChild);
  range.collapse(true);

  wwe.getEditor().setSelection(range);
}
function focusToFirstCode($pre, wwe) {
  const range = wwe.getEditor().getSelection().cloneRange();
  $pre.removeClass(CODEBLOCK_CLASS_TEMP);

  range.setStartBefore($pre.get(0).firstChild);
  range.collapse(true);

  wwe.getEditor().setSelection(range);
}
function focusToFirstCode ( $pre , wwe ) { const range = wwe . getEditor ( ) . getSelection ( ) . cloneRange ( ) ; $pre . removeClass ( CODEBLOCK_CLASS_TEMP ) ; range . setStartBefore ( $pre . get ( 0 ) . firstChild ) ; range . collapse ( true ) ; wwe . getEditor ( ) . setSelection ( range ) ; }
focusToFirstCode
Focus to first code tag content of pre tag
@param {jQuery} $pre pre tag
@param {WysiwygEditor} wwe wysiwygEditor
focusToFirstCode Focus to first code tag content of pre tag