Skip to content

feat: upgrade to Angular 18 and Jodit 4 with standalone components#134

Open
DcodeDesign wants to merge 2 commits intojodit:masterfrom
DcodeDesign:v18
Open

feat: upgrade to Angular 18 and Jodit 4 with standalone components#134
DcodeDesign wants to merge 2 commits intojodit:masterfrom
DcodeDesign:v18

Conversation

@DcodeDesign
Copy link
Copy Markdown

  • Upgrade Angular from v8 to v18, Jodit from v3 to v4, TypeScript to ~5.4
  • Migrate JoditAngularComponent to standalone (no NgModule required)
  • Replace require('jodit') with proper ESM import and Jodit.make()
  • Import jodit/esm/plugins/all to enable the complete Jodit feature set
    (source, video, hr, eraser, copyformat, symbols, fullsize, etc.)
  • Strong TypeScript typing: JoditConfig, tagName, EventObj
  • Keep JoditAngularModule as backward-compatible NgModule wrapper
  • Remove obsolete tooling: tslint, protractor/e2e, browserslist, polyfills

thomas.gravy and others added 2 commits May 2, 2026 21:21
- Bump Angular from v8 to v18, Jodit from v3 to v4, TypeScript to ~5.4
- Switch to @angular-devkit/build-angular:application builder
- Replace tslint with strict TypeScript compiler options
- Remove protractor/e2e, polyfills, legacy browserslist files
- Update tsconfig to ES2022/bundler moduleResolution
- Update peerDependencies range in lib package.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Library:
- Convert JoditAngularComponent to standalone, use inject() over constructor DI
- Replace require('jodit') with proper ESM import and Jodit.make()
- Add @directive() to Events base class, type EventObj with Jodit | undefined
- Derive JoditConfig from Parameters<typeof Jodit.make> for accurate typing
- Type tagName as keyof HTMLElementTagNameMap
- Keep JoditAngularModule as backward-compatible NgModule wrapper

Demo app:
- Migrate to bootstrapApplication (standalone bootstrap)
- Replace AppModule with standalone AppComponent using ReactiveFormsModule
- Import jodit/esm/plugins/all to enable the complete Jodit feature set

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant