Add testing guide

This commit is contained in:
Sauli Anto 2019-10-11 21:37:29 +03:00
parent a09eba801f
commit ec03d72ec5
3 changed files with 24 additions and 1 deletions

View File

@ -17,6 +17,7 @@ This is the best* TeX-based mathematical plugin for CKEditor 5. You can use it t
* [From plain text](#from-plain-text)
* [From Microsoft Word](#from-microsoft-word)
- [Preview workaround](#preview-workaround)
- [Testing](#testing)
- [Todo](#todo)
## Features
@ -178,6 +179,16 @@ __.ck-reset_all *__ css rules from ckeditor5-ui and ckeditor5-theme-lark break r
My solution for this is use rendering element outside of CKEditor DOM and place it right place by using absolute position. Alternative solution could be using iframe, but then we have to copy typesetting engine's scripts and styles to child document.
## Testing
Replace ckeditor5-core with git version
`rm -rf node_modules/@ckeditor/ckeditor5-core && git clone https://github.com/ckeditor/ckeditor5-core.git node_modules/@ckeditor/ckeditor5-core`
Run test suite
`npm run test`
## Todo
- MathML input and output when using MathJax version 3

13
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "ckeditor5-math",
"version": "1.0.2",
"version": "1.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -323,6 +323,17 @@
"integrity": "sha512-tzjP2kYGcTH59AgMZEVbIAWm6TnoBANmMyKdS8SolSEqu2EZp8PrCT9ChPWUbUJXpS4dcg0wxmkxtPDjtDCY5Q==",
"dev": true
},
"@ckeditor/ckeditor5-paragraph": {
"version": "11.0.5",
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-11.0.5.tgz",
"integrity": "sha512-/E4RhtVXNC7IPHkQyNdPyl362mivzLbYMHMKhhDXnPFjHwBZMYbiVpzH+K5Fpajkzl1SYb2PPO5uh7JF5BlhbA==",
"dev": true,
"requires": {
"@ckeditor/ckeditor5-core": "^12.3.0",
"@ckeditor/ckeditor5-ui": "^14.0.0",
"@ckeditor/ckeditor5-utils": "^14.0.0"
}
},
"@ckeditor/ckeditor5-typing": {
"version": "12.2.0",
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-12.2.0.tgz",

View File

@ -22,6 +22,7 @@
"@ckeditor/ckeditor5-dev-tests": "^16.9.0",
"@ckeditor/ckeditor5-editor-inline": "^12.3.0",
"@ckeditor/ckeditor5-essentials": "^11.0.5",
"@ckeditor/ckeditor5-paragraph": "^11.0.5",
"eslint": "^5.5.0",
"eslint-config-ckeditor5": "^2.0.0",
"husky": "^1.3.1",