autumnnote 1.8.1 → 1.8.2

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ A **zero-dependency WYSIWYG rich-text editor** built with vanilla JavaScript (ES
16
16
 
17
17
  > **Fast. Lightweight. Reliable. Efficient.**
18
18
 
19
- [Live Demo](https://cmm-cmm.github.io/Autumn-Note/) · [Docs](https://cmm-cmm.github.io/Autumn-Note/docs.html) · [Playground](https://cmm-cmm.github.io/Autumn-Note/playground.html)
19
+ [Live Demo](https://autumn.konexforge.com/) · [Docs](https://autumn.konexforge.com/docs.html) · [Playground](https://autumn.konexforge.com/playground.html)
20
20
 
21
21
  <p align="center"><img src="examples/Screenshot.png" alt="AutumnNote Screenshot"/></p>
22
22
 
@@ -384,7 +384,7 @@ editor.invoke('toolbar.rebuild'); // re-render toolbar with new buttons
384
384
  | `context.use(plugin, opts?)` | Install on this instance only. |
385
385
  | `context.getPlugin<T>(name)` | Returns the public API from `plugin.install()`. |
386
386
 
387
- See the [full Plugin API docs →](https://cmm-cmm.github.io/Autumn-Note/docs.html#plugin-api)
387
+ See the [full Plugin API docs →](https://autumn.konexforge.com/docs.html#plugin-api)
388
388
 
389
389
  ---
390
390
 
@@ -356,12 +356,6 @@
356
356
  padding: 12px 14px;
357
357
  min-height: 0;
358
358
  outline: none;
359
- }
360
- .an-editable:focus-visible {
361
- outline: 2px solid var(--an-focus-color, #3b82f6);
362
- outline-offset: -2px;
363
- }
364
- .an-editable {
365
359
  line-height: 1.6;
366
360
  color: #111827;
367
361
  overflow-y: auto;
@@ -16563,6 +16563,7 @@ var Mention = class {
16563
16563
  debounce: cfg.debounce ?? 200,
16564
16564
  onSearch: cfg.onSearch,
16565
16565
  onInsert: cfg.onInsert || null,
16566
+ onError: cfg.onError || null,
16566
16567
  mentionClass: cfg.mentionClass || "an-mention",
16567
16568
  allowSpaces: cfg.allowSpaces || false
16568
16569
  };
@@ -17491,7 +17492,7 @@ var AutumnNote = {
17491
17492
  /** All pre-built button definitions — accessible in every module format including UMD/CJS. */
17492
17493
  buttons,
17493
17494
  /** Library version */
17494
- version: "1.8.0"
17495
+ version: "1.8.2"
17495
17496
  };
17496
17497
  /**
17497
17498
  * @param {string|Element|NodeList|Element[]} selector