ckeditor-a11ychecker

WebJar for ckeditor-a11ychecker

License

License

Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-cksource-ckeditor-plugin-a11ychecker
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

ckeditor-a11ychecker
WebJar for ckeditor-a11ychecker
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/cksource/ckeditor-plugin-a11ychecker

Download github-com-cksource-ckeditor-plugin-a11ychecker

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-cksource-ckeditor-plugin-a11ychecker/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-cksource-ckeditor-plugin-a11ychecker</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-cksource-ckeditor-plugin-a11ychecker/
implementation 'org.webjars.npm:github-com-cksource-ckeditor-plugin-a11ychecker:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-cksource-ckeditor-plugin-a11ychecker/
implementation ("org.webjars.npm:github-com-cksource-ckeditor-plugin-a11ychecker:1.1.0")
'org.webjars.npm:github-com-cksource-ckeditor-plugin-a11ychecker:jar:1.1.0'
<dependency org="org.webjars.npm" name="github-com-cksource-ckeditor-plugin-a11ychecker" rev="1.1.0">
  <artifact name="github-com-cksource-ckeditor-plugin-a11ychecker" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-cksource-ckeditor-plugin-a11ychecker', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "github-com-cksource-ckeditor-plugin-a11ychecker" % "1.1.0"
[org.webjars.npm/github-com-cksource-ckeditor-plugin-a11ychecker "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

CKEditor Accessibility Checker

Overview

This repository contains the development version of the Accessibility Checker plugin for CKEditor.

Requirements

  • CKEditor 4.3.0 or later.
  • jQuery 1.x or later in order to run Quail.

Browser Support

Accessibility Checker has the same browser compatibility as CKEditor, with the following exceptions:

  • Internet Explorer 8 is not supported.
  • Internet Explorer 9 Quirks Mode is not supported.

Installation

Distribution Version

For more information about the distribution version see the DISTRIBUTION.md file.

Development Version

If you are not interested in developing core Accessibility Checker features, feel free to skip this section.

# Assuming that $CKEDITOR_DEV_PATH is your CKEditor path.
cd $CKEDITOR_DEV_PATH/plugins
git clone [email protected]:cksource/ckeditor-plugin-a11ychecker.git a11ychecker

Checkout the Balloon Plugin

git clone [email protected]:cksource/ckeditor-plugin-balloonpanel.git balloonpanel

Dependencies

Building CSS

You will also need to build the CSS, since we use LESS.

npm install
grunt build-css

Pro tip: You can also use grunt watch:less.

RequireJS

Note that developer version requires RequireJS, so make sure you have it loaded.

Building a Distribution Version

You can build a distribution package using Grunt.

Main changes in the distribution version:

  • It does not use RequireJS, so all classes are inlined.
  • It contains the CKEDITOR.plugins.a11ychecker.rev property with a revision hash.
  • Quick-fixes are minified.
  • It will automatically create a zip archive so that you can share it without publishing the code in a public repository.

To build Accessibility Checker go to the a11ychecker plugin directory and execute the following commands:

npm install
grunt build

Build files are put in the build directory of the a11ychecker plugin directory.

Building a Full Distribution

Since Accessibility Checker actually has a few dependencies, you might want to include all the dependent plugins just to make the installation process easier.

A build-full feature is available for this purpose. It will include dependent plugins in the build directory and create a zip archive.

npm install
grunt build-full

Another person might now simply get the zip, extract it to the ckeditor/plugins directory and everything is ready to go.

Including a Different Quail Configuration

You might want to change the default Quail guidelines configuration. Doing so might have some benefits. For example, the users of your Accessibility Checker distribution will not need to edit the config.js on their own after your releases. You can do that by adding an extra --quail-config="foo.json" CLI parameter to the build command. It should point to a JSON file that contains an array of strings. For example:

[
	"aAdjacentWithSameResourceShouldBeCombined",
	"documentVisualListsAreMarkedUp",
	"headerH1",
	"headerH2",
	"headerH3",
	"imgAltIsTooLong",
	"pNotUsedAsHeader"
]

Then you might include it in the build with:

grunt build-full --quail-config="_local/custom.json"

Including a Different Quail Build

You can actually use a totally different custom Quail build. To do that, provide a path to your custom Quail build using the --quail option.

For example:

grunt build-full --quail=/libs/js/customQuailBuild`

Common questions

Be sure to check the Wiki - it contains code samples for commonly asked questions.

Where Do I Start?

Run Bender as described in Unit Testing and open the manual test.

Unit Testing

Accessibility Checker comes with custom bender.js configuration, because it requires some custom Bender plugins that CKEditor does not need. You should use the -c CLI parameter to point to the custom configuration file.

bender server run -H 0.0.0.0 -c plugins/a11ychecker/bender.js

Both unit tests and integration tests are placed in the tests directory.

License

Copyright (c) 2014-2019, CKSource - Frederico Knabben. All rights reserved.
Licensed under the terms of the GNU General Public License Version 2 or later (the "GPL").

See LICENSE.md for more information.

org.webjars.npm

CKSource

Versions

Version
1.1.0