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 🙏

© 2026 – Pkg Stats / Ryan Hefner

wes-redactor

v0.1.23

Published

return RedactorX for Angular

Readme

wes-redactor

return RedactorX for Angular

Work at

  • Node: 10.7.0
  • npm 6.4.0
  • Angular CLI: 15+

install

npm install wes-redactor --save -E

Usage

ANGULAR.JSON

Place your licensed RedactorX script and styles in /src/libs/redactorx

{
  ...  
  "styles": [
      ...
      "src/libs/redactorx/redactorx.min.css",
      "src/libs/redactorx/redactorplugins.scss",
      "src/styles.scss"
  ],
  "scripts": [
      {
        "input": "src/libs/redactorx/redactorx.min.js",
        "inject": true,
        "bundleName": "RedactorX"
      }
  ]
  ...
}

Component

import {WeSRedactor, WeSRedactorModule} from "wes-redactor";

@Component({
  ...
  standalone: true,
  imports: [CommonModule, WeSRedactorModule, FormsModule],
  ...
})

...

protected editorOne: WeSRedactor = new WeSRedactor;
protected editorTwo: WeSRedactor = new WeSRedactor;

protected fieldTextOne: string = '';
protected fieldTextTwo: string = '';

protected destroyed$: Subject<unknown> = new Subject();

ngAfterViewInit(): void {
    
    // First Element
    this.editorOne.init('id_of_first_textarea_element', {
      editor: {
        minHeight: '350px',
        maxHeight: '450px',
      },
      content: this.fieldTextOne,
    }).change$.pipe(takeUntil(this.destroyed$)).subscribe({
      next: (value: any) => {
        // console.log('new content', value);
        this.fieldTextOne = value; // update your field/model/control
      }
    });


    // Second Element
    this.editorTwo.init('id_of_second_textarea_element', {
      editor: {
        minHeight: '300px',
        maxHeight: '400px',
      },
      content: this.fieldTextTwo,
    }).change$.pipe(takeUntil(this.destroyed$)).subscribe({
      next: (value: any) => {
        // console.log('new content', value);
        this.fieldTextTwo = value; // update your field/model/control
      }
    });


}

ngOnDestroy(): void {
  this.destroyed$.next(true);
}

HTML

<textarea id="id_of_first_textarea_element"></textarea>
...
<textarea id="id_of_second_textarea_element"></textarea>

DOCUMENTATION

  • init('id_of_element', {original object for RedactorX config})

  • change$ - Subscriptor to access each change in content

If you are using RedactorX plugins, you will need to load them in your Component before to add on Config.

Changelog

0.1.23

  • Updated documentation to multiple Redactor instances

0.1.21

  • Updated to accept Angular 15+