GithubHelp home page GithubHelp logo

jenzener / ckeditor-autocorrect-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danyapostfactum/ckeditor-autocorrect-plugin

0.0 1.0 0.0 56 KB

Brings some features of the Word/OpenOffice AutoCorrect to the CKEditor

JavaScript 100.00%

ckeditor-autocorrect-plugin's Introduction

AutoCorrect plugin for CKEditor

Brings some autocorrect features from MS Word / Open Office word processors. It Works as you type. You can also correct an already typed text manually.

Features:

  • Smart quotes
  • Hyperlink autoformat
  • Bulleted and numbered lists autoformat (start a paragraph with * or 1. and hit Space)
  • Character sequences autoreplace (e.g. (c) → ©)
  • Ordinal numbers autoformat (e.g. 1st → 1st)
  • Hyphen to dash conversion (-)
  • Horizontal rule insertion (type --- or ___ and press Enter)

Different numbered lists are supported: 1. , a. , I. . A right parenthesis can be used instead of full stops. The following markers are recognized as bulleted list markers: *, +, .

Useful replacement character sequences:

Typed Replaced
<-- and --> ← and →
<-->
-+ or +- ±
~=
(c), (r), (tm) ©, ®, ™
(o) ˚
...
<< and >> « and »
1/2, 1/4, 3/4 ½, ¼, ¾

Installation

Place it in plugins/autocorrect directory where CKEditor is installed and don't forget to add 'autocorrect' to config.extraPlugins If you use custom toolbar config, add "AutoCorrect" button to appear in toolbar.

Config

autocorrect_enabled (Boolean) - disable autocorrect as you type by default (default: true)

autocorrect_replacementTable (Object) - characters to replace as you type (key/value map)

autocorrect_useReplacementTable (Boolean) - use the characters table to replace as you type (default: true)

autocorrect_recognizeUrls (Boolean) - recognize hyperlinks as you type (default: true)

autocorrect_replaceHyphens (Boolean) - replace hypens with dashes as you type (default: true)

autocorrect_dash (String) - a character to replace a hyphen with (defalut: '–')

autocorrect_replaceSingleQuotes (Boolean) - replace single quotes as you type (default: true)

autocorrect_singleQuotes (String) - quote pair to use as replacements (defalut: '‘’')

autocorrect_replaceDoubleQuotes (Boolean) - replace double quotes as you type (default: true)

autocorrect_doubleQuotes (String) - quote pair to use as single quotes replacements (defalut: '“”')

autocorrect_createHorizontalRules (Boolean) - replace --- or ___ (tree or more characters in a row) with horizontal rule (default: true)

autocorrect_formatBulletedLists (Boolean)- format * any text as bulleted list (possible markers: *, +, ) (default: true)

autocorrect_formatNumberedLists (Boolean) - format 1. any text as numbered list (possible formats: 1 , a or I with dots or right parenthesis) (default: true)

Usage

Author

Danil Kostin

ckeditor-autocorrect-plugin's People

Contributors

danyapostfactum avatar jenzener avatar marinatells avatar monstrao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.