Commit Graph

30 Commits

Author SHA1 Message Date
Niels Lyngsø
8ed801331a adding override terms 2024-06-21 10:54:17 +02:00
Jacob Overgaard
b77a91f01d fix: Tinymce allows potentially unsafe embeds
This sets `convert_unsafe_embeds` to true to act as a workaround for CVE-2024-29881 seeing that we cannot upgrade to tinymce 7 at the moment. The only difference from TinyMCE 6 to 7 in this regard is that this option is set to true and is the official workaround.

Fixes https://github.com/umbraco/Umbraco.CMS.Backoffice/security/dependabot/44
2024-06-11 12:41:00 +02:00
Lee Kelleher
5269c8a1c1 Merge pull request #1978 from umbraco/v14/bugfix/tinymce-plugin-config
Feature: TinyMce Custom Configuration
2024-06-06 10:02:46 +01:00
Jacob Overgaard
59372acc56 chore: turn off tinymce promotions 2024-06-04 09:13:54 +02:00
Jacob Overgaard
f6db30310c fix: remove older CSS additions that should no longer be relevant to TinyMCE v6 such as z-index, which messes with the box-shadow 2024-06-03 15:14:51 +02:00
Jacob Overgaard
b03ea6bf2c fix: use umbDeepMerge to merge config coming in twice over in order not to overwrite 2024-06-03 14:43:05 +02:00
Jacob Overgaard
410bf45d5d fix: load plugins up front 2024-06-03 14:31:15 +02:00
Jacob Overgaard
4f9de15fbd fix: find plugins up front and merge their manifest config to initialize tinyMce, then later on initialize the plugin APIs 2024-06-03 14:11:59 +02:00
Jacob Overgaard
f0491384b9 fix: combine two onInit events 2024-06-03 14:11:23 +02:00
Jacob Overgaard
9ae442dccc fix: avoid setting the tiny config as a lit state 2024-06-03 14:10:31 +02:00
Mads Rasmussen
867b749550 Update relative module imports 2024-05-29 15:01:04 +02:00
Niels Lyngsø
9df7492b2e clean up editor value 2024-05-28 01:08:22 +02:00
Jacob Overgaard
b2d972a2ae Merge pull request #1798 from umbraco/bugfix/multiple-tinymce-per-page
fix: multiple TinyMCE's on the same page does not work
2024-05-13 10:05:12 +02:00
Jacob Overgaard
d90763a9b4 fix: tinymce does not use its default config
Specifically for height, width, content_css, and style_formats, tinymce did not use its fallbacks if they were not provided through the data type.
2024-05-10 15:41:43 +02:00
Jacob Overgaard
f08c474978 fix: merge css and let it work on the visible element 2024-05-10 15:34:25 +02:00
Jacob Overgaard
ae207b1c12 fix: allow multiple editors on the page
tinymce does not support having the same html id on its root elements (even though it's a Shadow DOM), so we use an html class instead and tinymce is happy
2024-05-10 15:33:09 +02:00
Jacob Overgaard
bd80bd312e fix: load the editor only once
this ensures the index.ts file is only loaded once even though you have more editors visible on the page
2024-05-10 15:32:28 +02:00
leekelleher
33b0a3c7a5 TinyMCE property-editor code tidy-up 2024-04-25 13:50:29 +01:00
Jacob Overgaard
9caf8aba18 convert FormControlMixin to UUIFormControlMixin due to breaking change in uui 2024-04-11 10:59:56 +02:00
Jacob Overgaard
5781e8151f use relative import to avoid cyclic dependency 2024-04-08 13:16:15 +02:00
Lone Iversen
e26d948ab3 number 2024-03-26 13:21:38 +01:00
Lone Iversen
242b3913ed set height width to undefined if 0px rather than fully collapse editor 2024-03-26 13:21:38 +01:00
Lone Iversen
a1351cd717 Change to radio to avoid save as array 2024-03-26 13:21:38 +01:00
Lone Iversen
f63dfc6902 array or string 2024-03-26 13:21:38 +01:00
Lone Iversen
7fdeb8395d if a stylesheet dont have content, avoid crashing RTE 2024-03-26 13:21:38 +01:00
Lone Iversen
8314b64859 disable toolbar if tools empty 2024-03-26 13:21:38 +01:00
Lone Iversen
1d504b16f6 fix issue in editor no tools were picked... 2024-03-26 13:21:38 +01:00
Lone Iversen
5ff086011a Fix crash caused by editor mode 2024-03-26 13:21:38 +01:00
Jacob Overgaard
c3367f9925 remove server path because the test collides with the auth app, which mustn't be imported like this -- also the server url should be provided from the server 2024-03-04 11:42:28 +01:00
Niels Lyngsø
82ef0944a9 move tiny mce components into package 2024-02-23 22:57:39 +01:00