function constructEditorOptions(type, tags) {
  const out = Object.assign({}, BASE_EDITOR_OPTS)

  out.mode = EDITOR_MODES[type]

  if (!isEditable(type, tags)) {
    Object.assign(out, READ_ONLY_EDITOR_OPTS)
  }

  if (tags.includes(STATIC_TAG_TYPES.LINE_NUMBERS)) {
    Object.assign(out, LINE_NUMBERS_EDITOR_OPTS)
  }

  return out
}
// Returns the options to use with a given block type that has the given tags.
Returns the options to use with a given block type that has the given tags.
Returns the options to use with a given block type that has the given tags .
function constructEditorOptions(type, tags) {
  const out = Object.assign({}, BASE_EDITOR_OPTS)
  out.mode = EDITOR_MODES[type]
  if (!isEditable(type, tags)) {
    Object.assign(out, READ_ONLY_EDITOR_OPTS)
  }
  if (tags.includes(STATIC_TAG_TYPES.LINE_NUMBERS)) {
    Object.assign(out, LINE_NUMBERS_EDITOR_OPTS)
  }
  return out
}
function constructEditorOptions ( type , tags ) { const out = Object . assign ( { } , BASE_EDITOR_OPTS ) out . mode = EDITOR_MODES [ type ] if ( ! isEditable ( type , tags ) ) { Object . assign ( out , READ_ONLY_EDITOR_OPTS ) } if ( tags . includes ( STATIC_TAG_TYPES . LINE_NUMBERS ) ) { Object . assign ( out , LINE_NUMBERS_EDITOR_OPTS ) } return out }
Returns the options to use with a given block type that has the given tags.
Returns the options to use with a given block type that has the given tags .