diff --git a/frontend/src/ts/modals/custom-text.ts b/frontend/src/ts/modals/custom-text.ts index 37b07ae3a4c9..ec0cd14eb872 100644 --- a/frontend/src/ts/modals/custom-text.ts +++ b/frontend/src/ts/modals/custom-text.ts @@ -369,7 +369,10 @@ function apply(): void { CustomText.setPipeDelimiter(state.customTextPipeDelimiter); CustomText.setText(text); - if (state.customTextLimits.word !== "") { + if (state.customTextMode === "simple" && state.customTextPipeDelimiter) { + CustomText.setLimitMode("section"); + CustomText.setLimitValue(text.length); + } else if (state.customTextLimits.word !== "") { CustomText.setLimitMode("word"); CustomText.setLimitValue(parseInt(state.customTextLimits.word)); } else if (state.customTextLimits.time !== "") {