fix: hide table handles in readonly mode
This commit is contained in:
parent
60a373f488
commit
937386e42b
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue