From d9a8977c0c87188d76c00ee86b0de896c68713b9 Mon Sep 17 00:00:00 2001 From: omnizs38 Date: Tue, 30 Jun 2026 00:38:35 +0500 Subject: [PATCH] fix(table): replace alert() with showWarning() for nested table paste Signed-off-by: omnizs38 --- src/nodes/Table/TableCell.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nodes/Table/TableCell.js b/src/nodes/Table/TableCell.js index 115b74e1219..f97669cd341 100644 --- a/src/nodes/Table/TableCell.js +++ b/src/nodes/Table/TableCell.js @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +import { showWarning } from '@nextcloud/dialogs' import { t } from '@nextcloud/l10n' import { mergeAttributes } from '@tiptap/core' import { TableCell } from '@tiptap/extension-table' @@ -113,7 +114,7 @@ export default TableCell.extend({ } console.warn('Nested tables are not supported') - alert( + showWarning( t( 'text', 'A table was pasted into a table. Nested tables are not supported.',