devexpress-richedit 24.1.7-build-24281-0102 → 24.1.7
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.
- package/dist/dx.richedit.js +103 -68
- package/dist/dx.richedit.min.js +1 -1
- package/lib/client/client-rich-edit.js +6 -6
- package/lib/client/dialogs/hyperlink-dialog.js +13 -6
- package/lib/client/formats/docx/import/color/open-xml-color-import-helper.js +2 -2
- package/lib/client/formats/docx/import/importers/styles-importer.js +2 -1
- package/lib/client/model-api/collections/hyperlink-collection.js +1 -1
- package/lib/common/commands/dialogs/dialog-hyperlink-command.js +10 -4
- package/lib/common/commands/fields/open-hyperlink-command.js +7 -4
- package/lib/common/formats/html/import/html-importer.js +1 -1
- package/lib/common/model/color/color-model-info.d.ts +1 -1
- package/lib/common/model/color/color-model-info.js +2 -1
- package/lib/common/model/fields/field.d.ts +4 -1
- package/lib/common/model/fields/field.js +18 -2
- package/lib/common/model/fields/parsers/field-code-parser-hyperlink.js +31 -37
- package/lib/common/model/manipulators/text-manipulator/text-manipulator.js +1 -1
- package/lib/common/model/styles-manager.js +1 -0
- package/lib/common/utils/utils.d.ts +1 -0
- package/lib/common/utils/utils.js +6 -0
- package/package.json +3 -3
package/dist/dx.richedit.js
CHANGED
@@ -10323,6 +10323,12 @@ class UrlUtils {
|
|
10323
10323
|
catch (_a) { }
|
10324
10324
|
return false;
|
10325
10325
|
}
|
10326
|
+
static splitUrlByAnchor(url) {
|
10327
|
+
const hashTagPosition = url.indexOf("#");
|
10328
|
+
if (hashTagPosition < 0)
|
10329
|
+
return [url, ""];
|
10330
|
+
return [url.substring(0, hashTagPosition), url.substring(hashTagPosition + 1)];
|
10331
|
+
}
|
10326
10332
|
}
|
10327
10333
|
UrlUtils.EmptyPage = "about:blank";
|
10328
10334
|
|
@@ -11356,10 +11362,11 @@ class color_model_info_ColorModelInfo {
|
|
11356
11362
|
}
|
11357
11363
|
static get nullColor() { return color_model_info_ColorModelInfo.makeByColor(ColorHelper.AUTOMATIC_COLOR); }
|
11358
11364
|
;
|
11359
|
-
static makeByThemeColorIndex(themeColorIndex, tint = 0) {
|
11365
|
+
static makeByThemeColorIndex(themeColorIndex, tint = 0, themeValue = ThemeColorValues.None) {
|
11360
11366
|
const result = new color_model_info_ColorModelInfo();
|
11361
11367
|
result.themeColorIndex = themeColorIndex;
|
11362
11368
|
result.tint = tint;
|
11369
|
+
result.themeValue = themeValue;
|
11363
11370
|
return result;
|
11364
11371
|
}
|
11365
11372
|
static makeByColor(color, tint = 0) {
|
@@ -25038,6 +25045,8 @@ class FieldDeletedSubDocumentChange {
|
|
25038
25045
|
}
|
25039
25046
|
}
|
25040
25047
|
|
25048
|
+
// EXTERNAL MODULE: ./src/common/utils/utils.ts
|
25049
|
+
var utils = __webpack_require__(5929);
|
25041
25050
|
;// CONCATENATED MODULE: ./src/common/model/fields/field.ts
|
25042
25051
|
|
25043
25052
|
|
@@ -25045,6 +25054,7 @@ class FieldDeletedSubDocumentChange {
|
|
25045
25054
|
|
25046
25055
|
|
25047
25056
|
|
25057
|
+
|
25048
25058
|
var FieldNameType;
|
25049
25059
|
(function (FieldNameType) {
|
25050
25060
|
FieldNameType[FieldNameType["None"] = 0] = "None";
|
@@ -25074,8 +25084,8 @@ class HyperlinkInfo {
|
|
25074
25084
|
clone() {
|
25075
25085
|
return new HyperlinkInfo(this.uri, this.anchor, this.tip, this.visited);
|
25076
25086
|
}
|
25077
|
-
|
25078
|
-
return this.uri + (this.anchor
|
25087
|
+
getUriWithAnchor() {
|
25088
|
+
return this.uri + (this.anchor.length > 0 ? "#" + this.anchor : "");
|
25079
25089
|
}
|
25080
25090
|
static getNewCodeText(hyperlinkInfo) {
|
25081
25091
|
return [
|
@@ -25086,6 +25096,21 @@ class HyperlinkInfo {
|
|
25086
25096
|
hyperlinkInfo.anchor == "" ? "" : " \\l \"" + hyperlinkInfo.anchor + "\""
|
25087
25097
|
].join("");
|
25088
25098
|
}
|
25099
|
+
isUri() {
|
25100
|
+
if (this.uri.length === 0)
|
25101
|
+
return false;
|
25102
|
+
if (this.uri.startsWith("#"))
|
25103
|
+
return false;
|
25104
|
+
if (this.isMail())
|
25105
|
+
return false;
|
25106
|
+
return utils/* UrlUtils */.jE.isValid(this.uri);
|
25107
|
+
}
|
25108
|
+
isMail() {
|
25109
|
+
return this.uri.startsWith("mailto:");
|
25110
|
+
}
|
25111
|
+
isValid() {
|
25112
|
+
return !!(this.uri || this.anchor);
|
25113
|
+
}
|
25089
25114
|
}
|
25090
25115
|
class SequenceInfo {
|
25091
25116
|
constructor(identifier, repeats, hidesResult, resets, resetsWith) {
|
@@ -28870,6 +28895,7 @@ class StylesManager {
|
|
28870
28895
|
}
|
28871
28896
|
addTableCellStyleCore(oldStyle) {
|
28872
28897
|
var newStyle = oldStyle.clone();
|
28898
|
+
this.tableCellStyleNameToIndex[newStyle.styleName] = this.documentModel.tableCellStyles.push(newStyle) - 1;
|
28873
28899
|
newStyle.characterProperties = this.documentModel.cache.mergedCharacterPropertiesCache.getItem(oldStyle.characterProperties);
|
28874
28900
|
newStyle.tableCellProperties = this.documentModel.cache.tableCellPropertiesCache.getItem(oldStyle.tableCellProperties);
|
28875
28901
|
return newStyle;
|
@@ -33623,6 +33649,7 @@ ApplyFieldHyperlinkStyleHistoryItem.mask = CharacterPropertiesMask.UseAll & ~(Ch
|
|
33623
33649
|
|
33624
33650
|
|
33625
33651
|
|
33652
|
+
|
33626
33653
|
class FieldCodeParserHyperlink extends FieldCodeParserClientUpdatingBase {
|
33627
33654
|
get name() { return FieldName.Hyperlink; }
|
33628
33655
|
parseCodeCurrentFieldInternal(_responce) {
|
@@ -33634,55 +33661,48 @@ class FieldCodeParserHyperlink extends FieldCodeParserClientUpdatingBase {
|
|
33634
33661
|
return true;
|
33635
33662
|
}
|
33636
33663
|
fillResult() {
|
33637
|
-
var
|
33638
|
-
|
33639
|
-
|
33664
|
+
var _a, _b;
|
33665
|
+
const field = this.getTopField();
|
33666
|
+
const text = (_b = (_a = this.parameterInfoList[0]) === null || _a === void 0 ? void 0 : _a.text) !== null && _b !== void 0 ? _b : "";
|
33667
|
+
const newHyperlinkInfo = this.updateHyperlinkInfo(text);
|
33640
33668
|
if (!newHyperlinkInfo) {
|
33641
|
-
if (!this.modelManager.richOptions.fields.keepHyperlinkResultForInvalidReference)
|
33669
|
+
if (!this.modelManager.richOptions.fields.keepHyperlinkResultForInvalidReference) {
|
33642
33670
|
this.removeInterval(this.getTopField().getResultInterval());
|
33671
|
+
}
|
33643
33672
|
return true;
|
33644
33673
|
}
|
33645
|
-
|
33646
|
-
|
33647
|
-
if (resultInterval.length
|
33648
|
-
|
33649
|
-
|
33674
|
+
const modelManipulator = this.modelManager.modelManipulator;
|
33675
|
+
const resultInterval = field.getResultInterval();
|
33676
|
+
if (resultInterval.length === 0) {
|
33677
|
+
const resultText = text !== null && text !== void 0 ? text : "#" + newHyperlinkInfo.anchor;
|
33678
|
+
const newResultInterval = new fixed.FixedInterval(resultInterval.start, resultText.length);
|
33650
33679
|
this.setInputPositionState();
|
33651
33680
|
this.replaceTextByInterval(resultInterval, resultText);
|
33652
|
-
|
33681
|
+
const subDocumentInterval = new SubDocumentInterval(this.subDocument, newResultInterval);
|
33682
|
+
const historyItem = new ApplyFieldHyperlinkStyleHistoryItem(modelManipulator, subDocumentInterval);
|
33683
|
+
this.modelManager.history.addAndRedo(historyItem);
|
33653
33684
|
}
|
33654
|
-
|
33685
|
+
const historyItem = new ChangeFieldHyperlinkInfoHistoryItem(modelManipulator, this.subDocument, field.index, newHyperlinkInfo);
|
33686
|
+
this.modelManager.history.addAndRedo(historyItem);
|
33655
33687
|
return true;
|
33656
33688
|
}
|
33657
|
-
updateHyperlinkInfo(
|
33658
|
-
|
33689
|
+
updateHyperlinkInfo(text) {
|
33690
|
+
const newHyperlinkInfo = new HyperlinkInfo("", "", "", false);
|
33691
|
+
[newHyperlinkInfo.uri, newHyperlinkInfo.anchor] = utils/* UrlUtils */.jE.splitUrlByAnchor(text);
|
33659
33692
|
newHyperlinkInfo.visited = false;
|
33660
|
-
|
33661
|
-
|
33662
|
-
|
33663
|
-
|
33664
|
-
|
33665
|
-
|
33666
|
-
|
33667
|
-
|
33668
|
-
|
33669
|
-
|
33670
|
-
break;
|
33671
|
-
}
|
33693
|
+
for (const switchInfo of this.switchInfoList) {
|
33694
|
+
if (switchInfo.type != FieldSwitchType.FieldSpecific)
|
33695
|
+
continue;
|
33696
|
+
switch (switchInfo.name.toLocaleUpperCase()) {
|
33697
|
+
case "O":
|
33698
|
+
newHyperlinkInfo.tip = switchInfo.arg;
|
33699
|
+
break;
|
33700
|
+
case "L":
|
33701
|
+
newHyperlinkInfo.anchor = switchInfo.arg;
|
33702
|
+
break;
|
33672
33703
|
}
|
33673
|
-
newHyperlinkInfo.tip = tipSwitch ? tipSwitch.arg : "";
|
33674
|
-
var splitted = text.split("#");
|
33675
|
-
if (splitted.length == 1) {
|
33676
|
-
newHyperlinkInfo.uri = splitted[0];
|
33677
|
-
newHyperlinkInfo.anchor = bookmarkSwitch ? bookmarkSwitch.arg : "";
|
33678
|
-
if (newHyperlinkInfo.uri == "" && newHyperlinkInfo.anchor == "")
|
33679
|
-
return null;
|
33680
33704
|
}
|
33681
|
-
|
33682
|
-
newHyperlinkInfo.uri = splitted[0];
|
33683
|
-
newHyperlinkInfo.anchor = splitted[1];
|
33684
|
-
}
|
33685
|
-
return newHyperlinkInfo;
|
33705
|
+
return newHyperlinkInfo.isValid() ? newHyperlinkInfo : null;
|
33686
33706
|
}
|
33687
33707
|
}
|
33688
33708
|
|
@@ -48019,7 +48039,7 @@ class TextManipulator extends RunsBaseManipulator {
|
|
48019
48039
|
return null;
|
48020
48040
|
const historyItems = history.historyItems;
|
48021
48041
|
const result = history.currentIndex == historyItems.length - 1 ? this.getLastHistoryItemNode(historyItems, null, checkType) : null;
|
48022
|
-
return
|
48042
|
+
return (result === null || result === void 0 ? void 0 : result.empty) ? null : result;
|
48023
48043
|
}
|
48024
48044
|
getLastHistoryItemNode(historyItems, parent, checkType) {
|
48025
48045
|
for (let ind = historyItems.length - 1, item; item = historyItems[ind]; ind--) {
|
@@ -69146,8 +69166,6 @@ class HtmlThTagImporter extends HtmlTdTagImporter {
|
|
69146
69166
|
}
|
69147
69167
|
}
|
69148
69168
|
|
69149
|
-
// EXTERNAL MODULE: ./src/common/utils/utils.ts
|
69150
|
-
var utils = __webpack_require__(5929);
|
69151
69169
|
;// CONCATENATED MODULE: ./src/common/formats/html/import/importers/text-node.ts
|
69152
69170
|
|
69153
69171
|
|
@@ -69877,7 +69895,7 @@ class HtmlImporter {
|
|
69877
69895
|
const missTag = HtmlImporter.MapMissTablePropertiesByTagNames[utils_list.ListUtils.last(this.levelInfo).tagImporter.elementTag()];
|
69878
69896
|
utils_list.ListUtils.forEach(this.currElementChildren, (childElement) => {
|
69879
69897
|
const childElemStyle = this.getStyles(childElement);
|
69880
|
-
if (
|
69898
|
+
if (childElement.nodeType !== Node.ELEMENT_NODE)
|
69881
69899
|
return;
|
69882
69900
|
for (var prop in this.getStyles(element)) {
|
69883
69901
|
if (missTag && /^(border|background|marginLeft)/gi.test(prop))
|
@@ -71303,7 +71321,7 @@ class HyperlinkCollection extends Collection {
|
|
71303
71321
|
subDocument.insertText(field.getCodeInterval().start, HyperlinkInfo.getNewCodeText(info));
|
71304
71322
|
if (canChangeHyperlinkDisplayText && hyperlinkInfo.text || field.getResultInterval().length == 0) {
|
71305
71323
|
subDocument.deleteText(convertToIntervalApi(field.getResultInterval()));
|
71306
|
-
subDocument.insertText(field.getResultInterval().start, !hyperlinkInfo.text || hyperlinkInfo.text == "" ? info.
|
71324
|
+
subDocument.insertText(field.getResultInterval().start, !hyperlinkInfo.text || hyperlinkInfo.text == "" ? info.getUriWithAnchor() : hyperlinkInfo.text);
|
71307
71325
|
}
|
71308
71326
|
this._processor.modelManager.history.addAndRedo(new ApplyFieldHyperlinkStyleHistoryItem(this._processor.modelManager.modelManipulator, new SubDocumentInterval(this._subDocument, field.getResultInterval())));
|
71309
71327
|
this._processor.modelManager.history.endTransaction();
|
@@ -74920,9 +74938,10 @@ class StyleManager {
|
|
74920
74938
|
string.StringMapUtils.forEach(this.info, (info) => action(info));
|
74921
74939
|
}
|
74922
74940
|
addStyle(dest) {
|
74941
|
+
var _a;
|
74923
74942
|
if (this.currInfo.isDefault && !this.isDefaultProcessed) {
|
74924
74943
|
this.isDefaultProcessed = true;
|
74925
|
-
if (this.defaultStyle.styleName === this.currInfo.name)
|
74944
|
+
if (((_a = this.defaultStyle) === null || _a === void 0 ? void 0 : _a.styleName) === this.currInfo.name)
|
74926
74945
|
this.applyProperties(dest, this.defaultStyle);
|
74927
74946
|
else
|
74928
74947
|
this.defaultStyle = this.addToModel(this.applyProperties(dest, this.createEmpty()));
|
@@ -77725,7 +77744,7 @@ class OpenXmlColorImportHelper {
|
|
77725
77744
|
if (themeValue != ThemeColorValues.None) {
|
77726
77745
|
const themeColorIndex = ThemeColorIndexCalculator.calculateThemeColorIndex(themeValue);
|
77727
77746
|
return themeColorIndex != ThemeColorIndexConstants.None ?
|
77728
|
-
color_model_info_ColorModelInfo.makeByThemeColorIndex(themeColorIndex, OpenXmlColorImportHelper.getTint(data, reader, 'themeTint', 'themeShade')) :
|
77747
|
+
color_model_info_ColorModelInfo.makeByThemeColorIndex(themeColorIndex, OpenXmlColorImportHelper.getTint(data, reader, 'themeTint', 'themeShade'), themeValue) :
|
77729
77748
|
color_model_info_ColorModelInfo.makeByThemeColorIndex(DXColor.empty);
|
77730
77749
|
}
|
77731
77750
|
else {
|
@@ -77756,7 +77775,7 @@ class OpenXmlColorImportHelper {
|
|
77756
77775
|
if (themeValue != ThemeColorValues.None) {
|
77757
77776
|
const themeColorIndex = ThemeColorIndexCalculator.calculateThemeColorIndex(themeValue);
|
77758
77777
|
if (themeColorIndex != ThemeColorIndexConstants.None)
|
77759
|
-
return color_model_info_ColorModelInfo.makeByThemeColorIndex(themeColorIndex, tint);
|
77778
|
+
return color_model_info_ColorModelInfo.makeByThemeColorIndex(themeColorIndex, tint, themeValue);
|
77760
77779
|
}
|
77761
77780
|
return color_model_info_ColorModelInfo.makeByColor(data.readerHelper.getWpSTColorValue(reader, 'fill', DXColor.empty), tint);
|
77762
77781
|
}
|
@@ -128142,8 +128161,14 @@ class DialogHyperlinkCommandBase extends ShowDialogCommandBase {
|
|
128142
128161
|
var field = this.getState().value;
|
128143
128162
|
if (field) {
|
128144
128163
|
var hyperlinkInfo = field.getHyperlinkInfo();
|
128145
|
-
|
128146
|
-
|
128164
|
+
if (hyperlinkInfo.isUri()) {
|
128165
|
+
parameters.url = hyperlinkInfo.getUriWithAnchor();
|
128166
|
+
parameters.anchor = "";
|
128167
|
+
}
|
128168
|
+
else {
|
128169
|
+
parameters.url = "";
|
128170
|
+
parameters.anchor = hyperlinkInfo.anchor;
|
128171
|
+
}
|
128147
128172
|
parameters.tooltip = hyperlinkInfo.tip;
|
128148
128173
|
parameters.text = FieldContextMenuHelper.getHyperlinkResultText(options.subDocument, field);
|
128149
128174
|
}
|
@@ -128156,7 +128181,7 @@ class DialogHyperlinkCommandBase extends ShowDialogCommandBase {
|
|
128156
128181
|
if (newParams.tooltip == initParams.tooltip && newParams.url == initParams.url && newParams.anchor == initParams.anchor && newParams.text == initParams.text)
|
128157
128182
|
return false;
|
128158
128183
|
var hyperlinkInfo = new HyperlinkInfo(newParams.url, newParams.anchor, newParams.tooltip, false);
|
128159
|
-
if (hyperlinkInfo.
|
128184
|
+
if (!hyperlinkInfo.isValid())
|
128160
128185
|
return false;
|
128161
128186
|
var modelManipulator = this.modelManipulator;
|
128162
128187
|
var selection = this.selection;
|
@@ -128178,7 +128203,7 @@ class DialogHyperlinkCommandBase extends ShowDialogCommandBase {
|
|
128178
128203
|
}
|
128179
128204
|
if (initParams.canChangeDisplayText && newParams.text != initParams.text || field.getResultInterval().length == 0) {
|
128180
128205
|
selection.deprecatedSetSelection(field.getResultStartPosition(), field.getResultEndPosition(), false, selection.keepX, false, false);
|
128181
|
-
this.control.commandManager.getCommand(RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall, new CommandSimpleOptions(this.control, !newParams.text || newParams.text == "" ? hyperlinkInfo.
|
128206
|
+
this.control.commandManager.getCommand(RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall, new CommandSimpleOptions(this.control, !newParams.text || newParams.text == "" ? hyperlinkInfo.getUriWithAnchor() : newParams.text));
|
128182
128207
|
}
|
128183
128208
|
history.addAndRedo(new ApplyFieldHyperlinkStyleHistoryItem(modelManipulator, new SubDocumentInterval(this.selection.activeSubDocument, field.getResultInterval())));
|
128184
128209
|
selection.deprecatedSetSelection(field.getFieldEndPosition(), field.getFieldEndPosition(), false, selection.keepX, false, false);
|
@@ -130308,7 +130333,7 @@ class GoToLastDataRecordCommand extends GoToRecordCommandBase {
|
|
130308
130333
|
}
|
130309
130334
|
|
130310
130335
|
// EXTERNAL MODULE: ./node_modules/@devexpress/utils/lib/utils/url.js
|
130311
|
-
var
|
130336
|
+
var url = __webpack_require__(6795);
|
130312
130337
|
;// CONCATENATED MODULE: ./src/common/commands/fields/hyperlink-command-base.ts
|
130313
130338
|
|
130314
130339
|
|
@@ -130355,12 +130380,15 @@ class OpenHyperlinkCommand extends HyperlinkCommandBase {
|
|
130355
130380
|
this.history.endTransaction();
|
130356
130381
|
this.aspxForceSendingRequest();
|
130357
130382
|
}
|
130358
|
-
if (hyperlinkInfo.
|
130383
|
+
if (hyperlinkInfo.isUri()) {
|
130384
|
+
let uri = hyperlinkInfo.getUriWithAnchor();
|
130385
|
+
if (!utils/* UrlUtils */.jE.isValid(uri))
|
130386
|
+
uri = utils/* UrlUtils */.jE.EmptyPage;
|
130387
|
+
url/* Url */.R.navigate(uri, "_blank");
|
130388
|
+
}
|
130389
|
+
else {
|
130359
130390
|
this.control.commandManager.getCommand(RichEditClientCommand.GoToBookmark)
|
130360
130391
|
.execute(this.control.commandManager.isPublicApiCall, new CommandSimpleOptions(this.control, hyperlinkInfo.anchor));
|
130361
|
-
else {
|
130362
|
-
const url = utils/* UrlUtils */.jE.isValid(hyperlinkInfo.uri) ? hyperlinkInfo.uri : utils/* UrlUtils */.jE.EmptyPage;
|
130363
|
-
utils_url/* Url */.R.navigate(url, "_blank");
|
130364
130392
|
}
|
130365
130393
|
return true;
|
130366
130394
|
}
|
@@ -141433,6 +141461,7 @@ class FontDialog extends DialogBase {
|
|
141433
141461
|
;// CONCATENATED MODULE: ./src/client/dialogs/hyperlink-dialog.ts
|
141434
141462
|
|
141435
141463
|
|
141464
|
+
|
141436
141465
|
class HyperlinkDialog extends DialogBase {
|
141437
141466
|
constructor() {
|
141438
141467
|
super(...arguments);
|
@@ -141579,13 +141608,19 @@ class HyperlinkDialog extends DialogBase {
|
|
141579
141608
|
parameters.text = data.text;
|
141580
141609
|
parameters.tooltip = data.tooltip;
|
141581
141610
|
const tabPanelSelectedIndex = this.tabPanel.option('selectedIndex');
|
141582
|
-
if (tabPanelSelectedIndex == 0)
|
141583
|
-
parameters.url = data.url;
|
141584
|
-
|
141585
|
-
parameters.anchor = data.anchor;
|
141611
|
+
if (tabPanelSelectedIndex == 0) {
|
141612
|
+
[parameters.url, parameters.anchor] = utils/* UrlUtils */.jE.splitUrlByAnchor(data.url);
|
141613
|
+
}
|
141586
141614
|
else {
|
141587
|
-
|
141588
|
-
|
141615
|
+
if (tabPanelSelectedIndex == 1) {
|
141616
|
+
parameters.url = "";
|
141617
|
+
parameters.anchor = data.anchor;
|
141618
|
+
}
|
141619
|
+
else {
|
141620
|
+
const subject = data.subject ? this.subjectPrefix + data.subject : '';
|
141621
|
+
parameters.url = this.mailtoPrefix + data.email + subject;
|
141622
|
+
parameters.anchor = "";
|
141623
|
+
}
|
141589
141624
|
}
|
141590
141625
|
}
|
141591
141626
|
}
|
@@ -143830,7 +143865,7 @@ class ClientRichEdit {
|
|
143830
143865
|
this.contextMenuSettings = settings.contextMenuSettings;
|
143831
143866
|
this.fullScreenHelper = new FullScreenHelper(element);
|
143832
143867
|
if (true)
|
143833
|
-
external_DevExpress_config_default()(JSON.parse(atob('
|
143868
|
+
external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaWNsQXpXRVkxYm5aUmEyRjVjRTk1UWt4d2RXTlVRU0lLZlE9PS5mRVhyTm1adGMwdWRsdzlOa3hheDBPejFzTEdNU0RwUHBXWGhVdEllc0xvU21lMVhxTC9jZWw2QUtMVVFjVFJERURuN0dRM1k0ZzVMRTlVSGJsK0lUM09zbmpOZnBxYS9nTFY2bmpHbWt2NytLQnVvWWtyTE9LbGtyQjRWQ00rVVZYdDNKZz09In0=')));
|
143834
143869
|
this.prepareElement(element, settings);
|
143835
143870
|
this.initDefaultFontsAndStyles();
|
143836
143871
|
this.initBars(settings.ribbon, settings.fonts);
|
@@ -144361,11 +144396,11 @@ class ClientRichEdit {
|
|
144361
144396
|
return this.barHolder.ribbon;
|
144362
144397
|
}
|
144363
144398
|
getLinkType(hyperlinkInfo) {
|
144364
|
-
if (hyperlinkInfo.
|
144365
|
-
return DocumentLinkType.Bookmark;
|
144366
|
-
if (hyperlinkInfo.uri && hyperlinkInfo.uri.substr(0, 7) === "mailto:")
|
144399
|
+
if (hyperlinkInfo.isMail())
|
144367
144400
|
return DocumentLinkType.EmailAddress;
|
144368
|
-
|
144401
|
+
if (hyperlinkInfo.isUri())
|
144402
|
+
return DocumentLinkType.Hyperlink;
|
144403
|
+
return DocumentLinkType.Bookmark;
|
144369
144404
|
}
|
144370
144405
|
setFullScreenMode() {
|
144371
144406
|
this.fullScreenHelper.prepareFullScreenMode();
|