33 Commits

Author SHA1 Message Date
c27f9628f4 Fine-tune markup drawing
This adjusts markup color slightly for the dark display, makes it fully
opaque, alternates the squiggly line between grammar and spelling
mistakes to visualize one-word-two-mistake-types, paints most important
mistakes last/on top etc.

All to make the markup as visible as possible.
2025-03-04 11:09:57 +01:00
20713b8b5d Add dark color-scheme for samples 2025-03-03 14:28:39 +01:00
61401cb3c0 Fix <textarea> overlay 2025-03-03 13:06:02 +01:00
9c7c967039 Rotate panel names
The new name reflects the purpose of the panel better:

- panelParent → correctionPanel: This is our (0, 0) positioned <div>
  inside which most of the magic happens. We do need it to be able to
  position it's child properly.

- correctionPanel → scrollPanel: This is a <div> which size and
  placement should exactly match the hostElement. We need it to provide
  a scrollable (hence the name) viewport for our canvas.
2025-02-28 11:02:04 +01:00
acd7ac1a2b Cleanup CSS 2025-02-28 10:28:39 +01:00
29dcd4c40d Merge canvas and scroll panels 2025-02-27 15:32:35 +01:00
b41068196e Set overflow style in CSS
It is static and should never change.
2025-02-27 15:01:37 +01:00
bb822f0bbc Extend grammar markup style continued 2025-02-27 14:01:37 +01:00
0855c13384 Fix <textarea>, cleanup... 2025-02-25 12:56:09 +01:00
a5db3099c6 Revise canvas management 2025-02-24 14:25:19 +01:00
d773682eeb Implement canvas-based mistake highlighting in BesService
- There's still a work to be done, but IMO it is a step inthe right direction
2025-02-12 18:17:12 +01:00
ac7fe2b90e feat: Enhance popupCorrectionPanel to highlight selected elements #2 2025-01-13 10:27:05 +01:00
6863bee513 Revise positioning and resizing 2024-06-28 11:51:09 +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
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