Skip to content

Commit 9fba4c4

Browse files
committed
AC-14602::Migrate from TinyMCE to Hugerte.org|Downgrade HugeRTE Version
1 parent 7a28d2f commit 9fba4c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1212
-690
lines changed

lib/web/hugerte/CHANGELOG.md

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6-
7-
## 1.0.9 - 2025-03-15
8-
9-
### Fixed
10-
- PrismJS license info has not been present in the codesample plugin files.
11-
12-
## 1.0.8 - 2025-03-11
13-
14-
### Fixed
15-
- Updated dependencies including those with security vulnerabilities.
16-
- Switched from a polynomial regular expression possibly creating a ReDoS vulnerabiliy to the native string trim method in hugerte.utils.Tools.trim.
17-
18-
## 1.0.7 - 2025-01-11
19-
20-
### Fixed
21-
- Fixed bundling HugeRTE together with a skin. (Tested with Vite/ES6 only.)
22-
- Dompurify license info has been present in files not containing Dompurify (e.g. plugins).
23-
24-
## 1.0.6 - 2024-12-20
25-
26-
### Fixed
27-
- Dompurify license info has not been present in the minified build.
28-
29-
## 1.0.5 - 2024-12-19
30-
31-
### Fixed
32-
- Fixed links to TinyMCE docs #GH-29
33-
34-
### Removed
35-
- Slimmed README.md. Docs are now in the separate hugerte/hugerte-docs repo.
5+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
6+
and is generated by [Changie](https://github.com/miniscruff/changie).
367

378
## 1.0.4 - 2024-10-28
389

@@ -102,7 +73,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10273
- Removed `InsertOrderedList` and `InsertUnorderedList` from core. #TINY-10644
10374
- Removed `closeButton` from `NotificationSpec`, close button in notification is now rendered by default. #TINY-10646
10475
- The autocompleter `ch` configuration property has been removed. Use the `trigger` property instead. #TINY-8929
105-
- The `promotion` init option has been removed. HugeRTE doesn't show an upgrade button regardless of it being present or not.
10676

10777
### Fixed
10878
- When deleting the last row in a table, the cursor would jump to the first cell (top left), instead of moving to the next adjacent cell in some cases. #TINY-6309

lib/web/hugerte/README.md

Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,71 @@ The 100% free fork of the world's #1 open source rich text editor.
44

55
Used and trusted by millions of developers, [TinyMCE](https://github.com/tinymce/tinymce) (the original project we've forked) is the world’s most customizable, scalable, and flexible rich text editor. However, they changed the license of TinyMCE 7 to GPLv2+ (or a commercial license) while it has been MIT for TinyMCE 6 and LGPL for older versions. This creates problems for users (see [the discussion](https://github.com/tinymce/tinymce/issues/9453)) so a fork has been created here. It has originally been named HugeMCE, however, due to [potential trademark confusion with TinyMCE](https://github.com/hugerte/hugerte/issues/1#issuecomment-2373423311), it has been renamed to HugeRTE before its publishment to npm.
66

7-
## Documentation
7+
## Get started with HugeRTE
88

9-
You can find the documentation [on the dedicated repo](https://github.com/hugerte/hugerte-docs).
9+
The simplest way to get started with HugeRTE is using a CDN:
1010

11-
## Demo
11+
```html
12+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/hugerte.min.js">
13+
```
1214
13-
Visit the [HugeRTE website](https://hugerte.org) to quickly play around with the editor.
15+
Or install it manually via `npm`:
1416
15-
## License
17+
```bash
18+
npm i hugerte
19+
```
1620
17-
[MIT](LICENSE.TXT)
21+
We're soon going to host the docs for HugeRTE on [our website](https://hugerte.org); for now, please refer to the [TinyMCE docs](https://tiny.cloud/docs/tinymce/6), but replace `tinymce` by `hugerte` in all code snippets.
22+
23+
[See this guide also](https://www.tiny.cloud/docs/tinymce/6/npm-projects/), but replace `tinymce@^6` by `hugerte@^1` (and of course, all occurrences of `tinymce` by `hugerte`).
24+
25+
HugeRTE provides a range of configuration options that allow you to integrate it into your application. Start customizing with a [basic setup](https://www.tiny.cloud/docs/tinymce/6/basic-setup/).
26+
27+
Configure it for one of three modes of editing:
28+
29+
- [classic editing mode](https://www.tiny.cloud/docs/tinymce/6/use-tinymce-classic/).
30+
- [inline editing mode](https://www.tiny.cloud/docs/tinymce/6/use-tinymce-inline/).
31+
- [distraction-free editing mode](https://www.tiny.cloud/docs/tinymce/6/use-tinymce-distraction-free/).
32+
33+
## Migrate from TinyMCE
34+
35+
If you have been using TinyMCE before, you have to brute-force replace `tinymce` by `hugerte` in your code. In your package.json, make sure you use `1.0.4` as `hugerte` version – not the one you used for `tinymce` before. HugeRTE is based on TinyMCE 6.8.4, but it is even later because it contains some code from TinyMCE 7 (all until the [commit which changed the license](https://github.com/tinymce/tinymce/commit/1cfe7f6817c68d713971a3e1dbe0c9775a40ce6d)). See the [Changelog](https://hugerte.org/docs/hugerte/1/changelog/) for details.
36+
37+
## Features
38+
39+
### Integration
40+
41+
> [!WARNING]
42+
> We have not yet forked these integrations so they're still about TinyMCE.
43+
44+
TinyMCE is easily integrated into your projects with the help of components such as:
45+
46+
- [tinymce-react](https://github.com/tinymce/tinymce-react)
47+
- [tinymce-vue](https://github.com/tinymce/tinymce-vue)
48+
- [tinymce-angular](https://github.com/tinymce/tinymce-angular)
49+
50+
With over 29 integrations, and 400+ APIs, see the TinyMCE docs for a full list of editor [integrations](https://www.tiny.cloud/docs/tinymce/6/integrations/).
51+
52+
### Customization
53+
54+
It is easy to [configure the UI](https://www.tiny.cloud/docs/tinymce/6/customize-ui/) of your rich text editor to match the design of your site, product or application. Due to its flexibility, you can [configure the editor](https://www.tiny.cloud/docs/tinymce/6/basic-setup/) with as much or as little functionality as you like, depending on your requirements.
55+
56+
With [30 powerful plugins available](https://www.tiny.cloud/tinymce/features/), and content editable as the basis of HugeRTE, adding additional functionality is as simple as including a single line of code.
57+
58+
Realizing the full power of most plugins requires only a few lines more.
59+
60+
### Extensibility
61+
62+
Sometimes your editor requirements can be quite unique, and you need the freedom and flexibility to innovate. Thanks to HugeRTE being open source, you can view the source code and develop your own extensions for custom functionality to meet your own requirements.
63+
64+
The HugeRTE [API](https://www.tiny.cloud/docs/tinymce/6/apis/tinymce.root/) is exposed to make it easier for you to write custom functionality that fits within the existing framework of HugeRTE [UI components](https://www.tiny.cloud/docs/tinymce/6/custom-ui-components/). Just don't forget to replace every instance of the `tinymce` object in the TinyMCE docs by `hugerte`.
1865
1966
## Compiling and contributing
2067
21-
In 2019 TinyMCE made the decision to transition their codebase to a monorepo. For information on compiling and contributing, see: [contribution guidelines](https://github.com/hugerte/hugerte/blob/master/CONTRIBUTING.md).
68+
In 2019 TinyMCE made the decision to transition their codebase to a monorepo. For information on compiling and contributing, see: [contribution guidelines](https://github.com/tinymce/tinymce/blob/master/CONTRIBUTING.md).
69+
70+
As an open source product, we encourage and support the active development of our software.
71+
72+
## Want more information?
73+
74+
Visit the [HugeRTE website](https://hugerte.org) and check out the [TinyMCE documentation](https://www.tiny.cloud/docs/) until we host the docs ourselves.

lib/web/hugerte/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hugerte/hugerte",
3-
"version": "1.0.9",
3+
"version": "1.0.4",
44
"description": "Web based JavaScript HTML WYSIWYG editor control.",
55
"license": [
66
"MIT"
@@ -24,14 +24,14 @@
2424
"extra": {
2525
"component": {
2626
"scripts": [
27-
"hugerte.js",
27+
"hugerte.js",
2828
"plugins/*/plugin.js",
2929
"themes/*/theme.js",
3030
"models/*/model.js",
3131
"icons/*/icons.js"
3232
],
3333
"files": [
34-
"hugerte.min.js",
34+
"hugerte.min.js",
3535
"plugins/*/plugin.min.js",
3636
"themes/*/theme.min.js",
3737
"models/*/model.min.js",
@@ -42,11 +42,11 @@
4242
},
4343
"archive": {
4444
"exclude": [
45-
"README.md",
45+
"README.md",
4646
"bower.js",
4747
"package.json",
4848
".npmignore",
4949
"CHANGELOG.md"
5050
]
5151
}
52-
}
52+
}

0 commit comments

Comments
 (0)