20 Commits

Author SHA1 Message Date
4e3559408e Move status icon out of core grammar checking service
Status icon is user-implemented now.
2024-06-27 11:35:40 +02:00
4060f0866c service2.js: Finish <textarea> support 2024-06-14 12:25:33 +02:00
81d60bd37e Add distinct highlighting for various error types 2024-06-05 09:15:28 +02:00
159cd51684 Improve the logic for repositioning grammar mistake highlights in response to DOM changes
Refactor the click detection logic to check if the click was inside the rectangle of the highlight element, rather than relying on stored rectangle coordinates.
Additionally, this update eliminates the need to attach event listeners to the entire window or the parent elements of the host element, simplifying the event handling and potentially improving performance.
2024-05-24 16:48:02 +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
02eb1a22e0 Enhance aesthetics of popup element. 2024-03-21 11:17:03 +01:00
73d7706749 Improve displaying mistakes count and add TODOs 2024-03-21 09:51:36 +01:00
cdfe9618c2 Implement creation and positioning of statusDiv within registered hostElement 2024-03-21 08:04:32 +01:00
6444dab919 Implement initial BesTAService class for grammar checking in textarea
This commit introduces the BesTAService class, which is designed to register a grammar checking service for textarea elements. The core logic has been written, although the class is not yet fully functional.
2024-03-19 08:46:43 +01:00
9680ece493 Display besService status icon in bottom-right corner
The .svg icons were created on www.svgrepo.com and have PD License
2024-03-18 10:29:25 +01:00
fe98c9237a Move styles to .css file and remove redundant class rules. 2024-02-09 10:56:37 +01:00
5d9d22bfef Refactor correction panel creation to support scroll functionality
This feature is not fully tested, there are still some bugs left, i.e., after scroll event the popup is unavailable
2024-02-09 10:38:31 +01:00
5aaf30934a Rename classes to follow 'bes-xyz' naming convention and apply JavaScript formatter 2024-02-02 11:03:37 +01:00
b034d5dd56 Add note for .online-editor 2024-02-02 10:40:25 +01:00
887741f061 Minor code revision 2024-02-02 10:34:53 +01:00
4e2409fa38 Implement correction panel with highlight functionality for error display 2024-02-02 09:18:28 +01:00
1ce46bf8a2 Create popup component and implement bestr api calls 2024-01-30 10:09:16 +01:00
db9785744f Improve paragraph splitting logic 2024-01-29 14:18:16 +01:00
f733f73509 Implement basic spell checking functionality 2024-01-29 11:04:39 +01:00
93d3dbfd8f Initial commit 2024-01-25 14:06:36 +01:00