133 Commits

Author SHA1 Message Date
4918dbfb36 Attach BesService to the global window for broader compatibility 2024-11-05 09:05:20 +01:00
49d21da518 Add export for BesService 2024-10-25 10:37:12 +02:00
b3badae762 Support for grammar rule enable/disable 2024-08-12 14:05:31 +02:00
04c7f63b5c Cleanup 2024-08-12 14:05:08 +02:00
eef106c53f Support for grammar rule category enable/disable 2024-08-05 15:48:57 +02:00
6740b14a17 Turn off picky rules
Ups?! This was a development phase leftover.
2024-08-05 15:48:07 +02:00
a457f48fbb Popup dialog dark-scheme 2024-06-28 14:14:11 +02:00
ef2e232813 Set popup position to relative
Otherwise z-index has no effect.
2024-06-28 13:33:22 +02:00
6863bee513 Revise positioning and resizing 2024-06-28 11:51:09 +02:00
6c9629dec6 Refactor logic to improve setting correction panel dimensions 2024-06-28 09:03:47 +02:00
4e3559408e Move status icon out of core grammar checking service
Status icon is user-implemented now.
2024-06-27 11:35:40 +02:00
042a6b288c Extend body mutation observer
This adds missing mutation observer unregistration and extends it to
monitor host element resizes too.
2024-06-26 08:51:39 +02:00
393c372bbf Merge remote-tracking branch 'remotes/origin/master' 2024-06-24 14:59:58 +02:00
d7b6220e57 TODO added 2024-06-24 14:58:58 +02:00
8abb1a56d7 Reuse text element computed styles if applicable 2024-06-24 14:53:53 +02:00
e0b20b9030 Cleanup 2024-06-24 14:52:50 +02:00
bddae0793e Revise host element display detection logic
BesService may be registered on any HTML element: <p>, <body>,
<whatever>... Not only <div>, <textarea> and CKEditor. Therefore, we
need more generic test to distinguish which resize strategy works best.
2024-06-24 14:52:16 +02:00
df4d293ffb Implement position observer to monitor if hostElement moves it's position 2024-06-20 09:47:36 +02:00
7dc00af858 Improve logic for adjusting correction panel dimensions to support inline elements
This is still a WIP commit, hence the code is yet to be refactored eventually
2024-06-20 08:52:16 +02:00
9c869a2897 Fix correction panel size calculation 2024-06-18 11:09:03 +02:00
e2cb4b95e3 Fix contenteditable attribute evaluation 2024-06-18 10:51:24 +02:00
3a8919c260 Add convenience methods for runtime (un)registration and a sample 2024-06-18 09:49:09 +02:00
843d2d5b1f Prevent duplicate service registrations 2024-06-18 09:38:54 +02:00
604fc960d5 service2.js → service.js 2024-06-14 12:30:07 +02:00
89201ceaff service2.js: Port CKEditor service 2024-05-22 12:52:23 +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
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