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
51c19451fb
Enhance visual style of replacement buttons
2024-03-26 08:14:49 +01:00
517230ac49
Refine mistakes display for textarea inputs
2024-03-21 15:00:47 +01: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
a48597b979
Resolve issue with click event handling
2024-03-19 14:49:19 +01:00
385e38c06d
Implement text replacement feature in textarea elements
2024-03-19 14:03:57 +01:00
dbecc61ec3
Tweak besTAService and besService for successful popup display
2024-03-19 09:45:16 +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
2d1195ee96
Resolve status display issue for CKEditor instances
2024-03-18 11:19:47 +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
3bb8b6df1c
Enhance user-friendliness of popup
2024-03-15 08:53:32 +01:00
acc047f48f
Implement drag functionality to popup element
2024-03-15 08:34:27 +01:00
abfbfa7e79
Resolve issue with rendering popups across multiple active besService instances
2024-03-15 07:52:49 +01:00
82a86725eb
Refactor replaceText function for improved compatibility with CKEditor instances
2024-03-14 12:01:43 +01:00
87c7f79ebe
Split BesService to isolate CKEditor specifics in BesCKService
2024-03-13 13:03:14 +01:00
63584185ae
Unify nomenclature
...
Our thing is a grammar checking service for HTML editors. Not editor as
such.
2024-03-13 12:35:54 +01:00
ef6615941b
Fix various issues
2024-03-13 11:58:38 +01:00
374dd0045a
Enhance replaceText logic for CKEditor
2024-03-13 08:48:00 +01:00
dde1010026
Rename and simplify constructor parameters
2024-03-13 08:11:02 +01:00
41c5954e89
Implement text replacement feature for CKEditor cases
2024-03-12 16:49:27 +01:00
259fc25f6f
Add some more documentation, upgrade addMistakeMarkup for multiline
2024-03-12 12:58:26 +01:00
bc0a3f7905
Revise event handling, document, cleanup
2024-03-12 11:23:11 +01:00
674e9498e6
Display highlight elements in CKEditor cases.
2024-03-11 08:20:50 +01:00
9bc5705aab
Add a classic CKEditor editing area html
2024-03-11 08:06:30 +01:00
dee4577db1
Resolve issue where buttons were not being properly removed
2024-02-22 14:17:45 +01:00
1b2483ee54
Enhance logic for rendering mistakes post-scroll and optimize the clearMistakesMarkup function
2024-02-22 11:48:29 +01:00
cee4cb90a8
Set spellcheck attribute to false via JS
2024-02-21 13:48:50 +01:00
26539b8c10
Add TODO comment and commented code for rich HTML text replacement
2024-02-21 13:43:55 +01:00
3f39889b0b
Fix popup replacement buttons rendering bug
2024-02-21 11:57:05 +01:00
334c2eabab
Wrap first child of 'bes-online-editor' in a div if it's not a block element
2024-02-21 09:33:02 +01:00
88685b05c7
Enhance handleClick function to support invocation from rich HTML content
2024-02-20 17:19:37 +01:00
aa905921f9
Update handleBeforeInput logic
2024-02-20 12:39:46 +01:00
9522ace2ce
Cleanups and improvements
2024-02-19 16:14:03 +01:00
dc4418038d
Add textarea element
2024-02-19 11:30:50 +01:00
544a43b191
Add feature to reposition mistakes functionality after text replacement
2024-02-16 10:08:34 +01:00
f30ee9d5ca
Update spellcheck attribute in index.html
2024-02-16 10:06:38 +01:00
3b9d2dd73b
Implement functionality to replace text with suggestions inside popup.
...
It is not the cleanest solution because it requires passing editor object across multiple functions.
2024-02-14 09:32:21 +01:00
a6130c39ce
Move code from popupjs and paste it into main JS file.
2024-02-13 11:42:41 +01:00
fbb9a06a10
Add TODO mark
2024-02-13 11:23:43 +01:00
6bdb339b88
Add MutationObserver for Editor Changes.
...
This allows detection and handling of deleted 'div' elements, thereby improving error correction and overall editor functionality.
2024-02-13 09:55:37 +01:00
06c88c37cd
Support rendering popup after scroll events
2024-02-09 12:18:43 +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
40631798d1
Support rendering mistakes for multiple active editors
2024-02-07 14:04:57 +01:00
1efc383c50
Remove editor's and correction-panel's IDs
2024-02-07 13:08:24 +01:00
10d41da4f4
Add readme
2024-02-07 12:44:16 +01:00