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

@webspellchecker/wproofreader-ckeditor5

v3.1.2

Published

Multilingual spelling and grammar checking plugin for CKEditor 5

Downloads

27,203

Readme

WProofreader plugin for CKEditor 5

The multilingual spelling and grammar checking solution for CKEditor 5. It provides both instant and in dialog proofreading modes in a convenient UI.

WProofreader plugin for CKEditor 5 View

Starting with version 3.1.0, the WProofreader plugin for CKEditor 5 offers basic TypeScript support. The package contains a type definition file (.d.ts), enabling integration and customization of the functionality using WProofreader options in TypeScript projects.

WProofreader plugin for CKEditor 5 inherits all functionality of the WProofreader component with slight adaptation to the view and features of the editor. For more details, visit the WProofreader repo or official web page.

Table of contents

Install instructions

  1. Install the plugin.

    You can integrate the plugin using one of these methods:

    • Using npm: Recommended for projects utilizing a JavaScript bundler.
    • Using CDN: Suitable for environments where no build process is involved.

    Using npm

    To install the plugin via npm, run the following command:

    npm install @webspellchecker/wproofreader-ckeditor5

    Import the WProofreader plugin into the project and configure it. Then, add it to the create() method configuration and include it as a toolbar item.

    import { ClassicEditor } from 'ckeditor5';
    import { WProofreader } from '@webspellchecker/wproofreader-ckeditor5';
    ...
    
    ClassicEditor
    	.create( editorElement, {
    		plugins: [ ..., WProofreader ],
    		toolbar: [ ..., 'wproofreader' ],
    		wproofreader: {
    			/* config of WProofreader */
    		}
    	} )

    Using CDN

    To load the script, utilize the browser's import map feature. This allows you to map a simple specifier to the full CDN URL, making it easier to reference the necessary files.

    <script type="importmap">
    {
    	"imports": {
    		"ckeditor5": "https://cdn.ckeditor.com/ckeditor5/43.0.0/ckeditor5.js",
    		"@webspellchecker/wproofreader-ckeditor5": "https://cdn.jsdelivr.net/npm/@webspellchecker/[email protected]/dist/browser/index.js"
    
    	}
    }
    </script>

    In the following script tag, import the WProofreader plugin, add it to the plugins array, and include it as a toolbar item.

    <script type="module">
        import { ClassicEditor } from 'ckeditor5';
        import { WProofreader } from '@webspellchecker/wproofreader-ckeditor5';
    
    	ClassicEditor
    		.create( editorElement, {
    			plugins: [ ..., WProofreader ],
    			toolbar: [ ..., 'wproofreader' ],
    			wproofreader: {
    				/* config of WProofreader */
    			}
    		} )
    </script>
  2. Configure the plugin

    After installing the plugin, you need to configure it in the CKEditor 5 setup. The configuration is added to the wproofreader field. For a detailed list of available customization options, refer to the documentation.

    For the Cloud-based version of WProofreader:

    wproofreader: {
    	lang: 'en_US', // sets the default language
    	serviceId: 'your-service-ID', // required for the Cloud version only
    	srcUrl: 'https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js'
    }

    serviceId is a mandatory parameter for activating and using the plugin pointed to the Cloud-based version of WProofreader.

    For the Server-based version of WProofreader:

    wproofreader: {
    	lang: 'en_US', // sets the default language
    	serviceProtocol: 'https',
    	serviceHost: 'localhost',
    	servicePort: '443',
    	servicePath: 'virtual_directory/api', // by default the virtual_directory is wscservice
    	srcUrl: 'https://host_name/virtual_directory/wscbundle/wscbundle.js'
    }

    Unlike the Cloud-based version, the serviceId parameter is not used here. Instead, it is required to specify the path to the backend entry point hosted on the client’s infrastructure.

Documentation

To find out more, refer the following documentation:

Reporting issues

We use GitHub Issues as the official public bug tracker for WProofreader plugin for CKEditor 5. Here are some recommendations to take into account when reporting an issue:

  • Provide steps which help us to reproduce an issue. A sample page or JSFiddle is always welcomed.
  • Some issues may be browser and integration-specific. So, please specify what browser and integration you encountered the issue.

Technical support or questions

Holders of an active subscription to the services or a commercial license have access to professional technical assistance directly from the support team. Contact us here.

License

Licensed under the terms of MIT license. For full details about the license, please check the LICENSE.md file.