fix: placeholder bug (#2373)

* fix placeholder check

* tiptap v3.29.2

* add s3 max socket env
This commit is contained in:
Philip Okugbe
2026-08-01 11:45:25 +01:00
committed by GitHub
parent 70d2ff8685
commit cd34594b5d
6 changed files with 1214 additions and 1204 deletions
@@ -194,16 +194,18 @@ export const mainExtensions = [
return i18n.t("Toggle title");
}
if (node.type.name === "paragraph") {
const $pos = editor.state.doc.resolve(pos);
const parentName = $pos.parent.type.name;
if (
parentName === "column" ||
parentName === "tableCell" ||
parentName === "tableHeader" ||
parentName === "callout" ||
parentName === "blockquote"
) {
return i18n.t("Write...");
const doc = editor.state.doc;
if (pos >= 0 && pos <= doc.content.size) {
const parentName = doc.resolve(pos).parent.type.name;
if (
parentName === "column" ||
parentName === "tableCell" ||
parentName === "tableHeader" ||
parentName === "callout" ||
parentName === "blockquote"
) {
return i18n.t("Write...");
}
}
return i18n.t('Write anything. Enter "/" for commands');
}