478f6269ee
service2.js: Remove excessive clearProofing() call
...
The markProofed() is called for block elements not proofed == not
present in this.results. Hence, clearProofing() has no effect in
markProofed().
2024-05-21 18:31:54 +02:00
49dc3385ea
service2.js: Fix onFailedProofingResult not called on abort
2024-05-21 18:30:04 +02:00
67eee1015e
service2.js: Fix corner cases and prepare for plain-text services
2024-05-21 11:43:52 +02:00
e05abce7d9
service2.js: Fix status icon and port status popup
...
However, status popup was disabled as deemed excessive for our use case.
2024-05-15 12:28:15 +02:00
5e339566f3
service2.js: Move abortController management upstream
...
Generally, any gramar checking will be cancellable and will need this.
2024-05-15 12:28:15 +02:00
ff54607e7e
service2.js: Port popup from service.js
2024-05-15 12:28:15 +02:00
c54366e95f
Refactor CKEditor event handling
2024-05-14 13:33:01 +02:00
970b43b8d6
Improve handling CKEditor events from plugins
2024-05-13 09:55:27 +02:00
133a278c9c
service2: Rework proofing notifications and aborting
...
Notifications were inconsistent in case of errors while checking
grammar.
2024-05-10 15:38:53 +02:00
e499ad22f8
Fork service2.js
...
Due to intensive development, service.js grew complex and convoluted.
With lessons learned we shall prepare a cleaner and leaner version of
the code.
2024-05-10 14:23:58 +02:00
d15348ed50
Extend updateStatusIcon() to set title too
...
All calls to updateStatusIcon() were followed by setting the title.
2024-05-08 13:15:10 +02:00
d6e823ed7a
Refactor proof() to remove isInitialCall requirement
...
Let's keep now recursiveProof() as clean as possible.
2024-05-08 13:09:12 +02:00
6392328e98
Add missing parameter documentation
2024-05-08 12:50:10 +02:00
71d17273d0
Cleanup excessive documentation
2024-05-08 12:29:43 +02:00
7b2ae27649
Refine positioning of status icon within CKEditor
2024-05-08 11:25:06 +02:00
d867346bbe
Optimize performance for handling long texts with numerous grammar errors
2024-05-07 10:38:02 +02:00
e7a948edbd
Register a resize observer for the textarea element
2024-04-29 10:46:52 +02:00
f6ee559065
Fix rendering mistakes in textarea instances following corrections
2024-04-29 08:57:20 +02:00
2192845cae
Resolve issue with resizing in textarea instances
2024-04-25 09:17:42 +02:00
5ed444f577
Improve CKEditor plugin listeners logic
2024-04-22 07:57:30 +02:00
b8dba4bba9
Cleanup
2024-04-18 13:30:06 +02:00
05b1b04012
Improve event handling and refactor clear children in CKEditor
2024-04-18 11:18:50 +02:00
1e46ef97ea
Improve event handling for CKEditor plugins
2024-04-18 09:46:55 +02:00
7609bb8191
Resolve bugs on changing the style of paragraphs in CKEditor
2024-04-17 14:47:35 +02:00
64b53fbf51
Implement event handling for CKEditor plugins to improve responsiveness
2024-04-16 15:56:19 +02:00
38b0b87644
Refactor service.js to enhance the logic for repositioning grammar mistakes
2024-04-15 10:17:55 +02:00
37855374bb
Fix popup visibility issue in CKEditor
2024-04-11 11:49:04 +02:00
6aaa8c4472
Add a comment about possible performance issues
2024-04-10 09:50:41 +02:00
cf8bc8afbd
Improve asynchronous handling and status rendering in proof function
...
The changes ensure that all recursive calls are properly awaited, leading to more predictable and reliable behavior.
Additionally, the status rendering has been also improved with these changes.
2024-04-08 11:56:02 +02:00
5b13bd3d28
Prevent screen 'shaking' on invocation of a popup window
2024-04-04 14:33:08 +02:00
ccbd80dcb7
Resolve issue with handling multiple mistakes in single CKEditor block element
2024-04-04 14:19:31 +02:00
3af7a4da63
Optimize repositioning mistakes in CKEditor
2024-04-04 10:54:30 +02:00
dcda2d89dc
Disable CKEditor's spellchecker
2024-04-04 07:53:20 +02:00
2c7a8f0c48
Resolve misalignment issues in textarea cases
2024-04-03 15:04:36 +02:00
2c40258d19
Resolve inconsistency in widths of cloneDiv and textarea elements
2024-04-03 10:15:11 +02:00
51fdf52fa9
Make a function to copy textarea content to cloneDiv element
2024-04-03 08:23:41 +02:00
fbfb8b419f
Reformat
2024-04-02 16:05:31 +02:00
4a23cc057e
Rebase besUrl to allow other BesStr API
2024-04-02 16:05:05 +02:00
28eea6eb9d
Move samples to dedicated subfolder
2024-04-02 14:32:25 +02:00
3e868b2517
TextArea: Position cursor after user selects suggested correction
2024-04-02 14:27:59 +02:00
e6324c55b3
Cleanup
2024-04-02 14:26:17 +02:00
7d7682ae9a
Skip markup in inline elements
...
It may end up in grammar suggestions. Thou, this partially removes
markup when user confirms suggestion it happens rarely - when grammar
mistakes spans across inline element boundaries (e.g. `Popravite
<a href=".">kar želite</a>.`).
2024-04-02 13:22:08 +02:00
35c518e0e0
Move besUrl out of source-controlled code
2024-04-02 10:09:36 +02:00
780bc25da6
Improve repostioning mistakes after scrolling logic
2024-03-29 08:09:27 +01:00
c6424e801d
Fix repositioning mistakes after scrolling
2024-03-29 07:17:41 +01:00
eb1ec95749
Implement new popup for service unregistration.
...
The popup not only serves the immediate purpose of unregistering services but is also designed with future enhancements in mind. It can be used as a display element for showcasing all errors present in the current host element in upcoming versions of besService.
2024-03-28 14:08:44 +01:00
8d1e9681f6
Tweak handleInput function for better handling of textareas
2024-03-28 07:59:55 +01:00
f29d6732c3
Add some documentation
2024-03-26 11:04:00 +01:00
1ed14519e7
Tweak registering besService and unify textarea and div contenteditable classes
2024-03-26 10:53:02 +01:00
dca6ecd28a
Eliminate bug in handleTAClick function to improve stability
2024-03-26 10:35:46 +01:00