mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 09:02:10 +10:00
fix: hide table handles in readonly mode
This commit is contained in:
@ -81,6 +81,12 @@ class TableDragHandlePluginSpec implements PluginSpec<void> {
|
|||||||
|
|
||||||
private _pointerOver = (view: EditorView, event: PointerEvent) => {
|
private _pointerOver = (view: EditorView, event: PointerEvent) => {
|
||||||
if (this._dragging) return;
|
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)
|
const hoveringCell = getHoveringCell(view, event)
|
||||||
this._hoveringCell = hoveringCell;
|
this._hoveringCell = hoveringCell;
|
||||||
|
|||||||
Reference in New Issue
Block a user