@flexiui/svelte-rich-text 0.0.80 → 0.0.81

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.
@@ -508,6 +508,19 @@
508
508
  }, 200);
509
509
  }
510
510
  },
511
+ transformPastedText(text) {
512
+ return text
513
+ },
514
+ transformPastedHTML(html: string) {
515
+ // Crear un div temporal para parsear el HTML
516
+ const div = document.createElement('div')
517
+ div.innerHTML = html
518
+
519
+ // Obtener solo el texto con saltos de línea
520
+ const text = div.innerText || div.textContent || ''
521
+
522
+ return text
523
+ },
511
524
  },
512
525
  onTransaction: ({ editor, transaction }) => {
513
526
  // Actualizar contador de nodos
@@ -100,7 +100,7 @@ export function getRichTextExtensions(options) {
100
100
  listKeymap: false,
101
101
  }),
102
102
  EnhancedLink,
103
- Image.configure({ inline: true }),
103
+ Image.configure({ inline: false }),
104
104
  Audio.configure({
105
105
  HTMLAttributes: { class: "audio-player" },
106
106
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexiui/svelte-rich-text",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
4
4
  "description": "A lightweight and flexible rich text editor component for Svelte",
5
5
  "keywords": [
6
6
  "svelte",