Commit Graph

18955 Commits

Author SHA1 Message Date
Jacob Overgaard
7acf3d4b01 Feature: Tiptap blockpicker (#2335)
* fix: editor is always available

* fix: remove deprecated v14 stuff

* fix: the block manager should not care about the editor

* fix: the block manager should not care about the editor

* feat: add new tiptap blockpicker extension

* fix: save valid content

* fix: disable white-space to conform blocks inside text

* fix: set block types back to TinyMCE until migration has been completed

* feat: define block content when inserting

* feat: make `getLayouts` available on the base class

* fix: remove unused parameter

* feat: cleanup blocks on change

* feat: adds inline blocks

* feat: set docs for typings and update the interfaces to match and add setEditor to get the editor instance

* feat: set docs for typings and update the interfaces to match and add setEditor to get the editor instance

* feat: adds blocks in rte

* chore: sonarcloud fix

* feat: remove delete button as components can be stripped away directly from the DOM

* feat: allow custom views for block-rte and filter the views based on conditions

* feat: mark tiptap blocks with an outline when active

* feat: export data content udi const

* fix: add block-rte to vite's importmap so that tinymce works on the dev server

* feat(tinymce): get the value from the event target

* feat: allow tinymce to insert blocks by listening to the context

* chore: mark styles as readonly

* chore: cleanup code

* fix: remove two fixed TODO comments

* feat: used named capturing group

* chore: import correct type in testing file

* Removed extra `originData` from Block List manager context

* Fixed issues in Tiptap toolbar button

* Corrected base class for Tiptap Image extension

* Fixed up the RTE package vite config

to export the Tiptap classes (for CMS build)

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
2024-09-24 18:40:02 +01:00
Jacob Overgaard
bcb5b660a1 fix: read blocks from config 2024-09-20 14:41:35 +02:00
Jacob Overgaard
481dc519f5 feat: add maxImageSize 2024-09-20 12:07:14 +02:00
Jacob Overgaard
9ef47d94bf Merge remote-tracking branch 'origin/v15/feature/tiptap' into v15/feature/tiptap-media-upload 2024-09-20 12:02:13 +02:00
JesmoDev
e9acd97a21 Merge remote-tracking branch 'origin/v15/feature/tiptap' into tiptap/feat/toolbar 2024-09-20 10:44:32 +02:00
Jacob Overgaard
1d48c1e86d feat: create a pure extension rather than depend on the UmbImage extension as we don't need all of that 2024-09-20 09:20:27 +02:00
Jacob Overgaard
2c3dd9ab91 chore: remove comment 2024-09-20 09:13:45 +02:00
Jacob Overgaard
161099caa4 feat: move imageSize function to general utils 2024-09-20 09:09:39 +02:00
Jacob Overgaard
fe4796ae27 feat: move imageSize function to util file 2024-09-20 09:04:21 +02:00
Jacob Overgaard
5ac2a8ddb6 Merge remote-tracking branch 'origin/v15/feature/tiptap' into v15/feature/tiptap-media-upload 2024-09-20 08:57:41 +02:00
leekelleher
528feb094f Moved all the Tiptap extension manifests into a combined/single manifest 2024-09-19 20:46:34 +02:00
Jacob Overgaard
a2a04714b5 Merge remote-tracking branch 'origin/v15/feature/tiptap' into v15/feature/tiptap-media-upload 2024-09-19 16:58:55 +02:00
Jacob Overgaard
d9c0ec9dab fix: types after merge 2024-09-19 16:58:05 +02:00
leekelleher
41151a52db Tiptap extension: Code Editor
to edit the HTML source of the RTE
2024-09-19 16:56:17 +02:00
Jacob Overgaard
423fe4e281 Merge remote-tracking branch 'origin/v15/feature/tiptap' into v15/feature/tiptap-media-upload 2024-09-19 16:54:27 +02:00
leekelleher
c90eb7ae32 Removed custom icon registry
Added Lucide icons for RTE toolbar
2024-09-19 16:46:39 +02:00
leekelleher
b22314867a Re-implemented the isActive state for toolbar elements 2024-09-19 16:46:39 +02:00
leekelleher
02a3cf8e8d Element class tidy-up 2024-09-19 16:46:39 +02:00
leekelleher
2489d29f18 Renamed class name suffix
from `Plugin` to `ExtensionApi`

Also corrected some misnamed classes (copypasta)
2024-09-19 16:46:39 +02:00
leekelleher
d19caa9a6e Creates extensions for core Tiptap formats
- Adds icon registry for custom icons
- Adds placeholder extensions for Umbraco's Embed and URL Picker features
2024-09-19 16:46:39 +02:00
Jacob Overgaard
d599b6085b chore: restore comments 2024-09-19 16:41:07 +02:00
Jacob Overgaard
825dbcd4eb chore: sort imports 2024-09-19 16:39:26 +02:00
Jacob Overgaard
eea25447ad fix: use local editor 2024-09-19 16:38:09 +02:00
Jacob Overgaard
75a822e2a8 fix: allow configuration to be undefined 2024-09-19 16:37:24 +02:00
Jacob Overgaard
d3c7300974 chore: remove clog 2024-09-19 16:36:15 +02:00
Jacob Overgaard
4f06d69296 feat: only calculate html on updates 2024-09-19 16:35:03 +02:00
Jacob Overgaard
4a190da8f0 feat: use #markup backing field 2024-09-19 16:32:28 +02:00
Jacob Overgaard
4587ff63b9 feat: introduce a backing field for markup to be able to add markup from the beginning 2024-09-19 16:31:05 +02:00
Jacob Overgaard
c8bdfd2ac3 feat: override value property to interact with tiptap 2024-09-19 16:26:22 +02:00
Jacob Overgaard
24c098b891 store value in another variable 2024-09-19 16:26:10 +02:00
Jacob Overgaard
fc5c3e8dcf fix: move options back to UmbImage element to ensure everything is available when the editor loads 2024-09-19 16:08:39 +02:00
Jacob Overgaard
1b2b35a94d fix: assume any to avoid linting error 2024-09-19 15:59:17 +02:00
Jacob Overgaard
98ffbba68d feat: only update value when changed 2024-09-19 15:40:43 +02:00
Jacob Overgaard
9860a9ad2a feat: add a hasChanged checker to the value to check specifically if the markup has changed 2024-09-19 15:28:54 +02:00
Jacob Overgaard
3fa5e21cb8 feat: update the contents if we ever get a new value 2024-09-19 15:28:09 +02:00
Jacob Overgaard
3a007a0046 feat: calculate image size for files added to the editor so that we can set width and height 2024-09-19 14:50:18 +02:00
Jacob Overgaard
401f39d47c feat: make the datatype configuration available to extensions 2024-09-19 14:49:53 +02:00
Jacob Overgaard
7295c6abf0 chore: remove debug data 2024-09-19 13:32:25 +02:00
Jacob Overgaard
57ace824b9 feat: add localization and correct name of data-tmpimg 2024-09-19 13:18:58 +02:00
Jacob Overgaard
d7212162e5 chore: add delay to file handler 2024-09-19 13:18:38 +02:00
Jacob Overgaard
95d6855341 chore: add mock handlers for "temporary-file" 2024-09-19 13:07:38 +02:00
Jacob Overgaard
4c79e784bc feat: adds a media upload extension supporting drag and drop 2024-09-19 11:48:53 +02:00
Jacob Overgaard
54ab8491bb fix: give UmbImage an extension name 2024-09-19 11:48:19 +02:00
Jacob Overgaard
7f7bc2bc39 chore: optimise file manager class 2024-09-19 11:48:06 +02:00
JesmoDev
cd348dd424 remove selectedValuesNew from value update 2024-09-19 11:08:12 +02:00
JesmoDev
462efda816 remove hover menu 2024-09-19 10:53:30 +02:00
JesmoDev
84e5409054 Merge remote-tracking branch 'origin/v15/feature/tiptap' into tiptap/feat/toolbar 2024-09-19 10:46:58 +02:00
JesmoDev
65ca1f205c toolbar styling 2024-09-19 10:42:43 +02:00
JesmoDev
48a3777f58 remove unused config 2024-09-19 10:27:04 +02:00
JesmoDev
bd11ebb622 change name to category 2024-09-19 10:24:47 +02:00