mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 08:52:05 +10:00
fix: hide table handles in readonly mode
This commit is contained in:
@ -82,6 +82,12 @@ class TableDragHandlePluginSpec implements PluginSpec<void> {
|
||||
private _pointerOver = (view: EditorView, event: PointerEvent) => {
|
||||
if (this._dragging) return;
|
||||
|
||||
// Don't show drag handles in readonly mode
|
||||
if (!this.editor.isEditable) {
|
||||
this._dragHandleController.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
const hoveringCell = getHoveringCell(view, event)
|
||||
this._hoveringCell = hoveringCell;
|
||||
if (!hoveringCell) {
|
||||
|
||||
Reference in New Issue
Block a user