matcha-components 20.234.0 → 20.236.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.
|
@@ -14576,7 +14576,7 @@ function buildButtonList(options) {
|
|
|
14576
14576
|
const groups = [['undo', 'redo']];
|
|
14577
14577
|
const formats = [
|
|
14578
14578
|
options.showFont && 'font',
|
|
14579
|
-
options.showFormats && '
|
|
14579
|
+
options.showFormats && 'blockStyle',
|
|
14580
14580
|
].filter(Boolean);
|
|
14581
14581
|
if (formats.length)
|
|
14582
14582
|
groups.push(formats);
|
|
@@ -14599,7 +14599,7 @@ function buildButtonList(options) {
|
|
|
14599
14599
|
options.showInOutDent && 'indent',
|
|
14600
14600
|
options.showAlign && 'align',
|
|
14601
14601
|
options.showList && 'list',
|
|
14602
|
-
options.showLine && '
|
|
14602
|
+
options.showLine && 'hr',
|
|
14603
14603
|
].filter(Boolean);
|
|
14604
14604
|
if (para.length)
|
|
14605
14605
|
groups.push(para);
|
|
@@ -14612,7 +14612,7 @@ function buildButtonList(options) {
|
|
|
14612
14612
|
if (insert.length)
|
|
14613
14613
|
groups.push(insert);
|
|
14614
14614
|
if (options.showMarkdown)
|
|
14615
|
-
groups.push(['
|
|
14615
|
+
groups.push(['markdownView']);
|
|
14616
14616
|
const view = [
|
|
14617
14617
|
options.showFullScreen && 'fullScreen',
|
|
14618
14618
|
options.showCodeView && 'codeView',
|
|
@@ -14828,7 +14828,7 @@ class MatchaTextEditorComponent {
|
|
|
14828
14828
|
return;
|
|
14829
14829
|
}
|
|
14830
14830
|
const mergedConfig = { ...DEFAULT_CONFIG, ...this._config };
|
|
14831
|
-
this._editor = SUNEDITOR.create(this.editorId
|
|
14831
|
+
this._editor = SUNEDITOR.create(`#${this.editorId}`, {
|
|
14832
14832
|
plugins: SUNEDITOR.plugins,
|
|
14833
14833
|
buttonList: buildButtonList(mergedConfig),
|
|
14834
14834
|
height: mergedConfig.height || '400px',
|