Lundalogik / lime-elements

Provides reusable web components for Lime CRM
https://lundalogik.github.io/lime-elements/versions/latest
Other
38 stars 11 forks source link

feat(text editor): Add custom menu #2937

Closed john-traas closed 5 months ago

john-traas commented 5 months ago

With this PR we use our action bar to create the menu items.

Commands for the various actions tied to those menu items are created and dispatched to the Editor via transactions.

This decouples us from the built-in limitations of Prose-Mirror's menu enabling us to modify or add to the menu when we want.

A good example of a use-case for this would be add-ons wanting to add functionality to allow the user to pre-populate the text editor with a pre-built template.

We can provide the foundation to implement that type of functionality from the consumer without worrying about navigating Prose-mirror restrictions.

Further iteration on the action bar will be taken to distinguish menu items that will be used for prose-mirror(editor) functions but that won't be required for the intents and purposes of this PR.

Fixes https://github.com/Lundalogik/crm-feature/issues/4077

github-actions[bot] commented 5 months ago

Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-2937/

lime-opensource commented 5 months ago

:tada: This PR is included in version 37.26.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: