fable-editor 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,23 @@
1
- MIT License
1
+
2
+ # Fable Editor License
2
3
 
3
4
  Copyright (c) 2026 Sajin Satheesan
4
5
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and its associated documentation files (the "Software"), to use the Software in personal, educational, and commercial projects.
7
+
8
+ You may:
9
+
10
+ * Use the Software in your own applications and websites.
11
+ * Modify the Software for your own internal use.
12
+ * Include the Software as part of a project or product you develop.
13
+
14
+ You may NOT:
15
+
16
+ * Sell, sublicense, rent, lease, or redistribute the Software, in whole or in part, as a standalone product.
17
+ * Publish modified or unmodified versions of the Software for others to download or use.
18
+ * Repackage or rebrand the Software under another name.
19
+ * Remove or modify this copyright notice.
20
+
21
+ This license does not grant ownership of the Software. All intellectual property rights remain with the copyright holder.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -95,6 +95,8 @@ export declare class FableEditor implements FableEditorApi {
95
95
  private restoreSel;
96
96
  private exec;
97
97
  private closestBlock;
98
+ /** Enter on an empty last line inside a blockquote exits it into a plain paragraph, mirroring how lists exit on an empty item. */
99
+ private tryExitBlockquote;
98
100
  private selectedBlocks;
99
101
  private onChange;
100
102
  private recordRevision;
@@ -330,6 +332,8 @@ export declare class FableEditor implements FableEditorApi {
330
332
  private positionImageHandles;
331
333
  private startImageResizeDrag;
332
334
  private toggleBlock;
335
+ /** Some browsers leave the <blockquote> wrapper in place after formatBlock('<p>'); strip it manually if so. */
336
+ private unwrapBlockquote;
333
337
  private clearSelToolbar;
334
338
  private updateSelToolbar;
335
339
  private buildSelToolbar;