devexpress-richedit 24.2.6-build-25051-0120 → 24.2.6-build-25065-0102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,10 +191,16 @@ export class TableBasedAutoCorrectProviderBase extends AutoCorrectProviderBase {
|
|
191
191
|
this.control.modelManager.modelManipulator.range.removeInterval(new SubDocumentInterval(this.subDocument, interval), true, false);
|
192
192
|
let endOfInsertedInterval = interval.start;
|
193
193
|
for (let i = 0; i < replaceWithStrings.length; i++) {
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
const result = this.control.modelManager.modelManipulator.
|
194
|
+
if (replaceWithStrings[i]) {
|
195
|
+
const subDocumentPosition = new SubDocumentPosition(this.subDocument, endOfInsertedInterval);
|
196
|
+
const insertTextManipulatorParams = new InsertTextManipulatorParams(subDocumentPosition, charPropsBundle, RunType.TextRun, replaceWithStrings[i]);
|
197
|
+
const result = this.control.modelManager.modelManipulator.text.insertTextViaHistory(insertTextManipulatorParams);
|
198
|
+
endOfInsertedInterval = result.insertedInterval.end;
|
199
|
+
}
|
200
|
+
if (i < replaceWithStrings.length - 1) {
|
201
|
+
const subDocumentPosition = new SubDocumentPosition(this.subDocument, endOfInsertedInterval);
|
202
|
+
const insertTextManipulatorParams = new InsertParagraphManipulatorParams(subDocumentPosition, charPropsBundle);
|
203
|
+
const result = this.control.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(insertTextManipulatorParams);
|
198
204
|
endOfInsertedInterval = result.end;
|
199
205
|
}
|
200
206
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "devexpress-richedit",
|
3
|
-
"version": "24.2.6-build-
|
3
|
+
"version": "24.2.6-build-25065-0102",
|
4
4
|
"homepage": "https://www.devexpress.com/",
|
5
5
|
"bugs": "https://www.devexpress.com/support/",
|
6
6
|
"author": "Developer Express Inc.",
|
@@ -14,8 +14,8 @@
|
|
14
14
|
"build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
|
15
15
|
},
|
16
16
|
"peerDependencies": {
|
17
|
-
"devextreme": "24.2.6-build-
|
18
|
-
"devextreme-dist": "24.2.6-build-
|
17
|
+
"devextreme": "24.2.6-build-25063-1935",
|
18
|
+
"devextreme-dist": "24.2.6-build-25063-1935"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"jszip": "~3.10.1",
|