56 Commits

Author SHA1 Message Date
Elian Doran
f8dba858c6
fix: lazyload not working for katex 2024-09-11 21:04:41 +03:00
Federico
3e1008ee96 Migrate tests to Typescript 2024-06-08 13:52:32 -05:00
Tony Narlock
8b7c6354ea refactor: katex.d.ts -> typings-external.ts
This way the .d.ts will not be deleted when filse are deleted through
rimraf
2024-03-17 04:25:30 -05:00
Tony Narlock
7bd6a7f57c chore: src/svg.d.ts -> typings/svg.d.ts
More appropriate to be stored in the typings directory, as it is
not a source file, but a type definition file for SVGs.
2024-03-17 04:25:30 -05:00
Tony Narlock
41edf6e7fc katex.d.ts: Genericize TrustContext for now
src/katex.d.ts:145:36 - error TS2304: Cannot find name 'TrustContext'.
145     trust?: boolean | ( ( context: TrustContext ) => boolean ) | undefined;
2024-03-17 04:25:30 -05:00
Tony Narlock
d104feb697 chore: Add override for methods
ERROR in ckeditor5-math/src/mathcommand.ts
./src/mathcommand.ts 5:8-13
[tsl] ERROR in ckeditor5-math/src/mathcommand.ts(5,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Command'.
 @ ./src/autoformatmath.ts 6:0-40 24:31-42
 @ ./src/index.ts 5:0-61 5:0-61

ERROR in ckeditor5-math/src/mathcommand.ts
./src/mathcommand.ts 6:8-15
[tsl] ERROR in ckeditor5-math/src/mathcommand.ts(6,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Command'.
 @ ./src/autoformatmath.ts 6:0-40 24:31-42
 @ ./src/index.ts 5:0-61 5:0-61

ERROR in ckeditor5-math/src/mathcommand.ts
./src/mathcommand.ts 48:8-15
[tsl] ERROR in ckeditor5-math/src/mathcommand.ts(48,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Command'.
 @ ./src/autoformatmath.ts 6:0-40 24:31-42
 @ ./src/index.ts 5:0-61 5:0-61

ERROR in ckeditor5-math/src/mathui.ts
./src/mathui.ts 41:8-15
[tsl] ERROR in ckeditor5-math/src/mathui.ts(41,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Plugin'.
 @ ./src/autoformatmath.ts 7:0-30 33:50-56
 @ ./src/index.ts 5:0-61 5:0-61

ERROR in ckeditor5-math/src/ui/mainformview.ts
./src/ui/mainformview.ts 40:8-14
[tsl] ERROR in ckeditor5-math/src/ui/mainformview.ts(40,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'View<HTMLElement>'.
 @ ./src/mathui.ts 2:0-45 61:29-41
 @ ./src/autoformatmath.ts 7:0-30 33:50-56
 @ ./src/index.ts 5:0-61 5:0-61

ERROR in ckeditor5-math/src/ui/mainformview.ts
./src/ui/mainformview.ts 130:8-14
[tsl] ERROR in ckeditor5-math/src/ui/mainformview.ts(130,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'View<HTMLElement>'.
 @ ./src/mathui.ts 2:0-45 61:29-41
 @ ./src/autoformatmath.ts 7:0-30 33:50-56
 @ ./src/index.ts 5:0-61 5:0-61

ERROR in ckeditor5-math/src/ui/mathview.ts
./src/ui/mathview.ts 76:8-14
[tsl] ERROR in ckeditor5-math/src/ui/mathview.ts(76,9)
      TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'View<HTMLElement>'.
 @ ./src/ui/mainformview.ts 5:0-34 48:32-40
 @ ./src/mathui.ts 2:0-45 61:29-41
 @ ./src/autoformatmath.ts 7:0-30 33:50-56
 @ ./src/index.ts 5:0-61 5:0-61

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
2024-03-17 04:25:30 -05:00
Tony Narlock
2825393538 Remove JavaScript files 2024-03-17 04:25:30 -05:00
Federico
9765abc0bd Migrate to Typescript 2024-03-17 04:25:30 -05:00
Tony Narlock
f36c96602d CSS: ck-z-modal -> ck-z-panel (for v41.0.0)
See also:
- https://github.com/ckeditor/ckeditor5/blob/v41.0.0/CHANGELOG.md

  > ui: The --ck-z-modal CSS custom property was renamed to --ck-z-panel.
  > We recommend updating custom CSS and integrations that use this custom
  > property to avoid presentation issues. See #14973.
- https://github.com/ckeditor/ckeditor5/issues/14973
2024-01-27 06:49:19 -06:00
Tony Narlock
c95ecf504d fix(config): Fix loading with no config object
Fixes #96
2023-04-05 08:13:04 -05:00
Daniel Kulbe
c7b616a31d #81 Make span element className configurable 2023-04-03 06:58:57 -05:00
Daniel Kulbe
383361733a Convert to DLL compatible plugin (#46) 2023-03-13 19:30:58 -05:00
Tony Narlock
ad8ffe0830 fix(MathView): Fix previewClassName 2023-02-14 17:21:39 -06:00
Tony Narlock
f15758b229 New option: katexRenderOptions
See also: https://katex.org/docs/options.html
2022-08-03 18:27:27 -05:00
Jules Bertholet
bae8c2c41f Use SwitchButtonView for display mode toggle button
Looks much nicer, and more intuitive to use
2021-05-16 14:10:47 -05:00
Jules Bertholet
ba34f1f3c1 Don't allow inserting empty equations
Keep the model free of invisible empty equation tags
2021-05-16 13:53:50 -05:00
Tony Narlock
a8b958d537 Upcast Quill style tags, fixes #39
See also: https://github.com/quilljs/quill/blob/develop/formats/formula.js
2021-05-05 10:40:23 -05:00
Tony Narlock
0fb49a523e Config: Optional classes previewClassName and popupClassName 2021-04-17 13:26:26 -05:00
Tony Narlock
7d76ccb527 Fix typo in variable 2021-04-17 12:09:58 +03:00
Sauli Anto
ae589a886c Fix balloon view position 2021-02-28 13:49:22 +02:00
Sauli Anto
3354872837 Add autoformat support 2020-11-07 22:19:00 +02:00
Sauli Anto
2fea2e2ffb Fix selection after entering inline expression 2020-11-03 21:45:38 +02:00
Sauli Anto
3629401035 Fix math editing button for balloon editor 2020-10-18 19:19:21 +03:00
Sauli Anto
aa0392c12f Add math editing button for balloon editor 2020-10-18 14:42:23 +03:00
Sauli Anto
a665b64839 Add typesetting engine lazy load feature 2020-10-11 10:55:51 +03:00
Sauli Anto
4323e66ae9 Rename inner writer 2020-10-11 10:55:51 +03:00
Sauli Anto
7d0cd0187f Fix writer and seperate schema 2020-08-29 17:33:41 +03:00
Sauli Anto
9d15010f4a Fix spacebar bug in Firefox 2020-04-05 17:24:46 +03:00
Sauli Anto
b52da3bc6e Fix mathui tests 2019-10-11 19:22:03 +03:00
Sauli Anto
786fc0f3ce Fix automath tests 2019-10-11 18:10:41 +03:00
Sauli Anto
1f96286200 Fix disabled eslint lines 2019-10-09 12:21:55 +03:00
Sauli Anto
70fefa84f5 Fix preview flickering effect 2019-10-09 11:16:07 +03:00
Sauli Anto
98815fcef0 Add hash to math preview 2019-10-06 11:13:17 +03:00
Sauli Anto
070f84ebd6 Fix preview rendering bug 2019-10-04 20:01:28 +03:00
Sauli Anto
1527c7c9eb Fix rendering width 2019-10-04 18:45:32 +03:00
Sauli Anto
ff0742cae3 Fix MathJax 3 rendering 2019-10-04 18:30:48 +03:00
Sauli Anto
3002c1733a Remove unnecessary comma 2019-10-03 23:25:16 +03:00
Sauli Anto
6e6a7ec10a Fix MathJax 2 preview rendering 2019-10-03 19:11:09 +03:00
Sauli Anto
2984df0a9a Fix preview rendering 2019-10-03 19:11:09 +03:00
Sauli Anto
6ea1c38e24 Fix rest parameters 2019-10-03 19:11:09 +03:00
Sauli Anto
b7ccab38ff Add preview fix 2019-10-03 19:11:09 +03:00
Sauli Anto
f89affbc3f Refactor code 2019-10-03 19:11:08 +03:00
Sauli Anto
e5e78962f0 Remove math paste from office 2019-10-03 19:11:08 +03:00
Sauli Anto
7013be6825 Add paste from word base 2019-10-03 19:11:08 +03:00
Sauli Anto
8e00885b29 Add temporary flickering fix 2019-10-03 19:11:07 +03:00
Sauli Anto
fff7e87630 Fix equation regexp 2019-10-03 19:11:07 +03:00
Sauli Anto
6e08776268 Add automath and fix preview and display button 2019-10-03 19:11:07 +03:00
Sauli Anto
eed45a5dd3 Add MathJax 3 support 2019-10-03 19:11:07 +03:00
Sauli Anto
566c9a40cb Fix linting errors 2019-10-03 19:11:07 +03:00
Sauli Anto
97a142d9cb Remove log 2019-10-03 19:11:06 +03:00