feat: upgrade to Angular 18 and Jodit 4 with standalone components#134
Open
DcodeDesign wants to merge 2 commits intojodit:masterfrom
Open
feat: upgrade to Angular 18 and Jodit 4 with standalone components#134DcodeDesign wants to merge 2 commits intojodit:masterfrom
DcodeDesign wants to merge 2 commits intojodit:masterfrom
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(source, video, hr, eraser, copyformat, symbols, fullsize, etc.)