npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-jodit

v1.0.3

Published

Angular component for Jodit Editor

Downloads

58

Readme

angular-jodit

angular-jodit is a streamlined and small project that allows you to use Jodit within an angular project without compromise. To allow angular users (including me) a quick approach to using it, the jodit editor has been wrapped inside a component that allows you to manage the text in the editor in compiling and retrieving, using the most classic angular reactive forms, specifically, it is sufficient to use a

FormControl<string>

The component is a standalone component that needs to be imported in order to be used, as it is done for example for the Angular CKD. The component uses Signal (default for Angular 17) for proper synchronization and refresh.

N.B. This project is a self-taught project aimed at helping those who use Jodit for Angular. We are not affiliated with the developers of Jodit, who we would like to thank for their excellent work.

Version

| Jodit | Angular | angular-jodit | |-----------------|---------|---------------| | 4.0.0-beta.117+ | 17+ | 0.0.6+ | | 4.2.21+ | 18+ | 1.0.0+ |

Installation

Import this dependency into your project in the following way, use npm i --save angular-jodit or npm i -D --save angular-jodit, whatever you prefer.

Usage

In TS File

@Component({})
export class MyComponent {

  editorTextForm = this.formBuilder.nonNullable.control('');

  constructor(
    private formBuilder: FormBuilder
  ) {
  }

}

In HTML Template


<angular-jodit [formControl]="editorTextForm" [options]="joditConfig"></angular-jodit>

joditConfig is an object that contains the editor's configurations and it is the same object that you can find explained in the official jodit documentation.

Example of joditConfig

joditConfi: any = {
  observer: {
    timeout: 100
  },
  buttons: [
    'fontsize', 'brush', '|',
    'bold', 'italic', 'underline', 'strikethrough', '|',
  ],
  textIcons: false,
  spellcheck: true,
  width: 'auto',
  height: 'auto',
  language: 'en',
  toolbar: true,
  showCharsCounter: false,
  showWordsCounter: false,
  showXPathInStatusbar: false,
  toolbarButtonSize: "middle" as any,
  theme: 'default',
  useSplitMode: false,
  colorPickerDefaultTab: 'color' as any,
  removeButtons: [],
  disablePlugins: [],
  events: {}
}

License

MIT

Contact Information

Use the git channel for bugs and requests.

Changelog

  • V.0.0.1. First publication.
  • V.0.0.2 - V.0.0.6 Minor Fix configuration.
  • V.0.0.7 - Fix Signal Effect.
  • V.0.1.0 - improved the cohesion between jodit and the reactive form + update dependencies.
  • V.0.1.1 - Update angular dependencies to 17.1.0 (Remove axios vulnerability GIT).
  • V.0.1.2 - Update angular dependencies to 17.1.1 (Remove vite vulnerability GIT).
  • V.0.1.3 - V.0.1.4 - Improved event catching for update formControl.
  • V.0.1.5 - Update angular dependencies to 17.2.1 (Remove NPM IP vulnerability GIT).
  • V.0.1.6 - Update angular dependencies to 17.3.0 (Follow-redirects).
  • V.0.1.7 - Update angular dependencies to 17.3.2 (Remove webpack-dev-middleware GIT).
  • V.0.1.8 - Update angular dependencies to 17.3.4 (Remove vite vulnerability).
  • V.1.0.0 - Update angular dependencies to 18.0.0.
  • V.1.0.2 - Update WS for mitigation CWE-476.
  • V.1.0.3 - Update angular dependencies to 18.2.3.