-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZKCK-48: wcs plugin breaks without scyat in current release
- Loading branch information
Showing
6 changed files
with
132 additions
and
27 deletions.
There are no files selected for viewing
105 changes: 80 additions & 25 deletions
105
ckez/src/archive/web/js/ckez/ext/CKeditor/plugins/wsc/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,80 @@ | ||
CKEditor WebSpellChecker Plugin | ||
=============================== | ||
|
||
This plugin brings Web Spell Checker (WSC) into CKEditor. | ||
|
||
WSC is "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution. | ||
|
||
Installation | ||
------------ | ||
|
||
1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation. | ||
2. Enable the "wsc" plugin in the CKEditor configuration file (config.js): | ||
|
||
config.extraPlugins = 'wsc'; | ||
|
||
That's all. WSC will appear on the editor toolbar and will be ready to use. | ||
|
||
License | ||
------- | ||
|
||
Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). | ||
|
||
See LICENSE.md for more information. | ||
|
||
Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/). | ||
WebSpellChecker Dialog Plugin for CKEditor 4 | ||
=============================== | ||
|
||
WebSpellChecker Dialog (WSC Dialog) provides distraction-free proofreading, checking the whole text’s spelling and grammar on-click in a separate pop-up window. | ||
|
||
 | ||
|
||
This plugin brings the multi-language WSC Dialog functionality into CKEditor 4. It is integrated by default starting with [Standard Package of CKEditor 4](https://ckeditor.com/ckeditor-4/download/). You can find it on the CKEditor 4 toolbar panel under the ABC button (Check Spelling). | ||
|
||
If your version of CKEditor doesn’t have WSC Dialog built-in, you can easily add it by following the steps outlined in the Get Started section. | ||
|
||
The default version of WSC Dialog plugin for CKEditor 4 is using the free services of WebSpellChecker. It is provided with a banner ad and has some [limitations](https://docs.webspellchecker.net/display/WebSpellCheckerCloud/Free+and+Paid+WebSpellChecker+Cloud+Services+Comparison+for+CKEditor). | ||
|
||
To lift the limitations and get rid of the banner, [obtain a license](https://webspellchecker.com/wsc-dialog-ckeditor4/#pricing). Depending on your needs, you can choose a Cloud-based or Server (self-hosted) solution. | ||
|
||
Demo | ||
------------ | ||
WSC Dialog plugin for CKEditor 4: https://webspellchecker.com/wsc-dialog-ckeditor4/ | ||
|
||
Supported Languages | ||
------------ | ||
|
||
The WSC Dialog plugin for CKEditor as a part of the free services supports the next languages for check spelling: American English, British English, Canadian English, Canadian French, Danish, Dutch, Finnish, French, German, Greek, Italian, Norwegian Bokmal, Spanish, Swedish. | ||
|
||
There are also additional languages and specialized dictionaries available for a commercial license, you can check the full list [here](https://webspellchecker.com/additional-dictionaries/). | ||
|
||
Get Started | ||
------------ | ||
|
||
1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation. | ||
2. Enable the "wsc" plugin in the CKEditor configuration file (config.js): | ||
|
||
config.extraPlugins = 'wsc'; | ||
|
||
That's all. WSC Dialog will appear on the editor toolbar under the ABC button and will be ready to use. | ||
|
||
Supported Browsers | ||
------- | ||
|
||
This is the list of officially supported browsers for the WSC Dialog plugin for CKEditor 4. WSC Dialog may also work in other browsers and environments but we unable to check all of them and guarantee proper work. | ||
|
||
* Chrome (the latest) | ||
* Firefox (the latest) | ||
* Safari (the latest) | ||
* MS Edge (the latest) | ||
* Internet Explorer 8.0 (limited support) | ||
* Internet Explorer 9.0+ (close to full support) | ||
|
||
Note: All browsers are to be supported for web pages that work in Standards Mode. | ||
|
||
Resources | ||
------- | ||
|
||
* Demo: https://webspellchecker.com/wsc-dialog-ckeditor4/ | ||
* Documentation: https://docs.webspellchecker.net/ | ||
* YouTube video: https://youtu.be/bkVPZ-5T22Q | ||
* Term of Service: https://webspellchecker.com/terms-of-service/ | ||
|
||
Technical Support or Questions | ||
------- | ||
|
||
In cooperation with the CKEditor team, during the past 10 years we have simplified the installation and built the extensive amount of documentation devoted to WSC Dialog plugin for CKEditor 4 and less. | ||
|
||
If you are experiencing any difficulties with the setup of the plugin, please check the links provided in the Resources section. | ||
|
||
Holders of an active subscription to the services or a commercial license have access to professional technical assistance directly from the WebSpellChecker team. [Contact us here](https://webspellchecker.com/contact-us/)! | ||
|
||
Reporting Issues | ||
------- | ||
|
||
Please use the [WSC Dialog plugin for CKEditor 4 GitHub issue page](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues) to report bugs and feature requests. We will do our best to reply at our earliest convenience. | ||
|
||
License | ||
------- | ||
|
||
This plugin is licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). | ||
|
||
See LICENSE.md for more information. | ||
|
||
Developed by [WebSpellChecker](https://webspellchecker.com/) in cooperation with CKSource. |
4 changes: 2 additions & 2 deletions
4
ckez/src/archive/web/js/ckez/ext/CKeditor/plugins/wsc/dialogs/wsc.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
B-ZKCK-48.zul | ||
Purpose: | ||
Description: | ||
History: | ||
Wed Sep 11 17:48:46 CST 2019, Created by rudyhuang | ||
Copyright (C) 2019 Potix Corporation. All Rights Reserved. | ||
--> | ||
<zk xmlns:w="client"> | ||
<label multiline="true"> | ||
1. Type something in CKeditor. | ||
2. Click "Check Spelling". | ||
3. Click "Finish Checking". | ||
4. It shouldn't hang with a "loading" icon circling. | ||
</label> | ||
<ckeditor> | ||
<attribute w:name="getConfig_"><![CDATA[ | ||
function (config) { | ||
config.disableNativeSpellChecker = true; | ||
config.removePlugins = 'scayt'; | ||
config.scayt_autoStartup = false; | ||
config.toolbar = [['SpellChecker']]; | ||
return config; | ||
} | ||
]]></attribute> | ||
</ckeditor> | ||
</zk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Selector } from 'testcafe'; | ||
|
||
fixture('ZKCK-48') | ||
.page('http://localhost:8080/ckeztest/test2/B-ZKCK-48.zul'); | ||
|
||
test('WCS dialog should be closed after finishing', async t => { | ||
await t | ||
.click('.cke_wysiwyg_frame') | ||
.pressKey('a b c d e f g') | ||
.click('.cke_button__spellchecker') | ||
.click('.cke_dialog_ui_input_text') | ||
.click('.cke_dialog_ui_button[title-cmd="FinishChecking"]') | ||
|
||
.expect(Selector('#overlayBlock').visible).notOk(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters