@overlap/rte 1.0.0 → 1.0.2

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/index.d.ts CHANGED
@@ -75,6 +75,7 @@ interface EditorSettings {
75
75
  numberedList?: boolean;
76
76
  quote?: boolean;
77
77
  codeBlock?: boolean;
78
+ horizontalRule?: boolean;
78
79
  check?: boolean;
79
80
  /** Heading levels to enable, e.g. ["h1", "h2", "h3"] */
80
81
  typography?: string[];
package/dist/index.esm.js CHANGED
@@ -4114,6 +4114,7 @@ const defaultEditorSettings = {
4114
4114
  numberedList: true,
4115
4115
  quote: true,
4116
4116
  codeBlock: true,
4117
+ horizontalRule: true,
4117
4118
  check: true,
4118
4119
  typography: ["h1", "h2", "h3", "h4", "h5", "h6"],
4119
4120
  colors: [
@@ -4192,6 +4193,9 @@ function buildPluginsFromSettings(settings = defaultEditorSettings, options = {}
4192
4193
  plugins.push(subscriptPlugin);
4193
4194
  if (fmt.superscript)
4194
4195
  plugins.push(superscriptPlugin);
4196
+ // Horizontal rule
4197
+ if (fmt.horizontalRule)
4198
+ plugins.push(horizontalRulePlugin);
4195
4199
  // Table
4196
4200
  if (settings.table?.enabled) {
4197
4201
  plugins.push(tablePlugin);