home / samples / Read-Only Mode

Read-Only Mode

The following scenarios for the editor into various kinds of read-only mode.

1. TUI

This blocks navigation too.
new Buffee(el, {})
TUI.enabled = true
Ln , Col |

2: Ultra High Capacity Mode

This forces the editor into a navigation-only mode.
BuffeeUltraHighCapacity(editor)
editor.UltraHighCapacity.activate()
await editor.UltraHighCapacity.appendLines([...])
Ln , Col |