roosterjs 9.2.0 → 9.3.0

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.
@@ -600,8 +600,17 @@ var EditorAdapter = /** @class */ (function (_super) {
600
600
  * @returns HTML string representing current editor content
601
601
  */
602
602
  EditorAdapter.prototype.getContent = function (mode) {
603
+ var _a;
603
604
  if (mode === void 0) { mode = 0 /* CleanHTML */; }
604
- return (0, roosterjs_content_model_core_1.exportContent)(this, GetContentModeMap[mode], this.getCore().environment.modelToDomSettings.customized);
605
+ var exportMode = (_a = GetContentModeMap[mode]) !== null && _a !== void 0 ? _a : 'HTML';
606
+ switch (exportMode) {
607
+ case 'HTML':
608
+ return (0, roosterjs_content_model_core_1.exportContent)(this, 'HTML', this.getCore().environment.modelToDomSettings.customized);
609
+ case 'PlainText':
610
+ return (0, roosterjs_content_model_core_1.exportContent)(this, 'PlainText');
611
+ case 'PlainTextFast':
612
+ return (0, roosterjs_content_model_core_1.exportContent)(this, 'PlainTextFast');
613
+ }
605
614
  };
606
615
  /**
607
616
  * Set HTML content to this editor. All existing content will be replaced. A ContentChanged event will be triggered