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