Skip to content

How do we set the editor to readonly? #1020

Answered by Saul-Mirone
ShravanSunder asked this question in Q&A
Discussion options

You must be logged in to vote
ctx.update(
  editorViewOptionsCtx,
  config => ({
    ...config,
    editable: () => false
  })
)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@zgrybus
Comment options

@knownasilya
Comment options

@Saul-Mirone
Comment options

@zgrybus
Comment options

@knownasilya
Comment options

Answer selected by ShravanSunder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants