hunk.code_window:    *   @property {Boolean} save
      * @return {State} state
      */
     apply(options = {}) {
       let { merge, isNative = false, save = true } = options
       let { state, operations } = this
       let { history } = state
       let { undos, redos } = history
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     let { merge, save, isNative = false } = options
  
hunk.file_path: src/models/transform.js
hunk.type: replace
file: 
  import { Data } from '../../../../../..'
  
  export default function (state) {
    const { document, selection } = state
    const texts = document.getTexts()
    const first = texts.first()
    const range = selection.merge({
      anchorKey: first.key,
      anchorOffset: 0,
      focusKey: first.key,
      focusOffset: 0
    })
  
    return state
      .transform()
      .setBlockAtRange(range, {
        type: 'code',
        data: Data.create({ key: 'value' })
      })
      .apply()
  }
  