mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
@ -57,8 +57,6 @@ $(function ()
|
||||
assert.strictEqual(AscTest.GetParagraphText(p), checkText + " ", text + " -> " + checkText);
|
||||
}
|
||||
|
||||
|
||||
|
||||
QUnit.test("Test: capitalize first letter of the sentence", function (assert)
|
||||
{
|
||||
logicDocument.SetAutoCorrectFirstLetterOfSentences(true);
|
||||
|
||||
@ -769,17 +769,13 @@
|
||||
|
||||
if (!this.AsYouType)
|
||||
return false;
|
||||
|
||||
if (!oDocument.IsAutoCorrectFirstLetterOfSentences())
|
||||
|
||||
let isCellFistLetter = (oRunElementsBefore.IsEnd() && oParagraph.IsTableCellContent());
|
||||
|
||||
if ((isCellFistLetter && !oDocument.IsAutoCorrectFirstLetterOfCells())
|
||||
|| (!isCellFistLetter && !oDocument.IsAutoCorrectFirstLetterOfSentences()))
|
||||
return false;
|
||||
|
||||
if (oRunElementsBefore.IsEnd()
|
||||
&& oParagraph.IsTableCellContent()
|
||||
&& !oDocument.IsAutoCorrectFirstLetterOfCells())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ("www" === sText || "http" === sText || "https" === sText)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user