@docs.plus/extension-hyperlink 1.5.1 → 1.5.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 +5 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ In a real world application, you would probably add a more sophisticated user in
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
````sh
|
|
14
|
-
npm install @
|
|
14
|
+
npm install @docs.plus/extension-hyperlink
|
|
15
15
|
````
|
|
16
16
|
|
|
17
17
|
## Settings
|
|
@@ -227,7 +227,6 @@ function setHyperlinkModal(options) {
|
|
|
227
227
|
|
|
228
228
|
</details>
|
|
229
229
|
|
|
230
|
-
|
|
231
230
|
<details>
|
|
232
231
|
<summary>The Hyperlink styles.scss</summary>
|
|
233
232
|
|
|
@@ -328,7 +327,6 @@ function setHyperlinkModal(options) {
|
|
|
328
327
|
|
|
329
328
|
</details>
|
|
330
329
|
|
|
331
|
-
|
|
332
330
|
````ts
|
|
333
331
|
import {
|
|
334
332
|
Hyperlink,
|
|
@@ -352,8 +350,6 @@ Hyperlink.configure({
|
|
|
352
350
|
|
|
353
351
|
<Su>
|
|
354
352
|
|
|
355
|
-
|
|
356
|
-
|
|
357
353
|
### Removing and overriding existing html attributes
|
|
358
354
|
|
|
359
355
|
You can add `rel: null` to HTMLAttributes to remove the default `rel="noopener noreferrer nofollow"`. You can also override the default by using `rel: "your-value"`.
|
|
@@ -441,7 +437,7 @@ this.editor.getAttributes('link').href
|
|
|
441
437
|
## Sorce code and Example
|
|
442
438
|
|
|
443
439
|
- Demo:
|
|
444
|
-
[
|
|
440
|
+
[extension-hyperlink](https://github.com/HMarzban/extension-hyperlink#test-drive-with-our-demo-)
|
|
445
441
|
- Extension:
|
|
446
442
|
[packages/extension-hyperlink](https://github.com/HMarzban/extension-hyperlink/tree/main/packages/extension-hyperlink)
|
|
447
443
|
- Usage: [packages/nextjs/src/components/Tiptap.tsx](https://github.com/HMarzban/extension-hyperlink/blob/59f45eba1886202f4840eb2112c34574c16fe68a/packages/nextjs/src/components/Tiptap.tsx#L19-L29)
|
|
@@ -453,4 +449,6 @@ Thank you for exploring our Hyperlink extension from docs.plus! We aim to make c
|
|
|
453
449
|
Our extension is inspired by Tiptap's [extension-link](https://github.com/ueberdosis/tiptap/tree/main/packages/extension-link). While we've incorporated our own enhancements, we'd like to tip our hats to Tiptap for pioneering the "headless" approach that we admire greatly.
|
|
454
450
|
> Please note: We're not affiliated with Tiptap, but we believe in recognizing foundational work.
|
|
455
451
|
|
|
456
|
-
Your feedback and interest in docs.plus are invaluable to us. Share your thoughts, suggestions, or dive deeper into our mission at the [docs.plus](https://github.com/docs-plus/docs.plus) repository.
|
|
452
|
+
Your feedback and interest in docs.plus are invaluable to us. Share your thoughts, suggestions, or dive deeper into our mission at the [docs.plus](https://github.com/docs-plus/docs.plus) repository.
|
|
453
|
+
|
|
454
|
+
Wish to converse? Connect with us [here](https://github.com/docs-plus/docs.plus#-connect-with-us).
|
package/package.json
CHANGED