@uxf/wysiwyg 16.3.0 → 16.4.1

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/README.md CHANGED
@@ -127,7 +127,7 @@ Everything below is exported from the package root (`@uxf/wysiwyg`) unless a dee
127
127
 
128
128
  ### Plugin builders
129
129
 
130
- `createPluginsWithUi` / `createAllPluginsWithUi` return the `UxfPlatePlugin[]` you pass to `WysiwygEditor`. Both inject the base plugins automatically (paragraph, exit-break, node-id, trailing-block), so pass only the feature builders below — not raw Plate plugins.
130
+ `createPluginsWithUi` / `createAllPluginsWithUi` return the `UxfPlatePlugin[]` you pass to `WysiwygEditor`. Both inject the base plugins automatically (paragraph, exit-break, soft-break, node-id, trailing-block), so pass only the feature builders below — not raw Plate plugins. Soft-break makes Shift+Enter insert a line break in every browser (Safari on macOS would start a new paragraph) and leaves touch devices to the browser.
131
131
 
132
132
  | Export | Signature | Notes |
133
133
  | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
@@ -5,6 +5,7 @@ const platejs_1 = require("platejs");
5
5
  const create_exit_break_plugin_1 = require("./plugins/exit-break/create-exit-break-plugin");
6
6
  const create_node_id_plugin_1 = require("./plugins/node-id/create-node-id-plugin");
7
7
  const create_paragraph_plugin_1 = require("./plugins/paragraph/create-paragraph-plugin");
8
+ const create_soft_break_plugin_1 = require("./plugins/soft-break/create-soft-break-plugin");
8
9
  const create_trailing_block_plugin_1 = require("./plugins/trailing-block/create-trailing-block-plugin");
9
10
  const paragraph_element_1 = require("./ui/paragraph-element");
10
11
  function isRecursivePlugin(plugin) {
@@ -30,6 +31,7 @@ const createPluginsWithUi = (wysiwygPlugins, options) => {
30
31
  const plugins = [
31
32
  (0, create_paragraph_plugin_1.createParagraphPlugin)().withComponent(paragraph_element_1.ParagraphElement),
32
33
  (0, create_exit_break_plugin_1.createExitBreakPlugin)(),
34
+ (0, create_soft_break_plugin_1.createSoftBreakPlugin)(),
33
35
  (0, create_node_id_plugin_1.createNodeIdPlugin)(),
34
36
  (0, create_trailing_block_plugin_1.createTrailingBlockPlugin)(),
35
37
  ...withUi,