- #3630 by @natamox – Fixed the problem that the LinkFloatingToolbar disappears when clicking anywhere when inserting a link
847741091a554231db7bd98d4ed1d75557e68a38
by @zbeyens – Fix type
- #3609 by @sakshikale14 – Fixed floating link issue #3609
f26ed56053b14e697fea2e6a7e33a73ce28593e4
by @12joan – Add thetarget
attribute todangerouslyAllowAttributes
for LinkPlugin
8342b6c2f333ee445c8b6be7e864857fd2a2584a
by @zbeyens – fix: Potential uncaught error when immediately dismounting the floating link input after update
- #3389 by @georeith – feat:
LinkPlugin
new optiontransformInput: (url: string) => string | undefined;
that optionally transform's the submitted URL provided by the user to the URL input before validation.
- #3241 by @felixfeng33 – Fix link button closing the floating toolbar.
- #3204 by @jijiseong – Fix zIndex of floating link
- #3036 by @Zum-Gluck – fix #2526,the url and text not cleaned up in time
- #3022 by @Zum-Gluck – Fixes #2526
4cbed7159
by @zbeyens – Move@udecode/plate-common
to peerDeps to fix a bug when multiple instances were installed
- #2705 by @AndreyMarchuk – Fix: "Cannot resolve a DOM node from Slate node" floating link case
-
#2585 by @zbeyens –
LinkFloatingToolbar
:- soft br:
useVirtualFloatingLink
removedplacement
andmiddleware
default values from floating options. - refactor:
useFloatingLinkEdit
anduseFloatingLinkEditState
- refactor:
useFloatingLinkInsert
anduseFloatingLinkInsertState
- feat:
useFloatingLinkInsert
return new field:hidden
- soft br:
- #2471 by @zbeyens – Removed:
FloatingLink
FloatingLinkEditButton
FloatingLinkTextInput
UnlinkButton
LaunchIcon
Link
LinkIcon
LinkOffIcon
ShortTextIcon
-
#2471 by @zbeyens – New hooks:
useLink
useLinkToolbarButton
-
#2471 by @zbeyens – New exports:
useListToolbarButton
useTodoListElement
someList
- #2441 by @vevsindre – Added option to skip link sanitation
- #2405 by @12joan –
- New link plugin option
defaultLinkAttributes?: AnchorHTMLAttributes<HTMLAnchorElement>
- Avoid returning
undefined
fromgetLinkAttributes
, since this overrides other values
- New link plugin option
- #2296 by @bojangles-m – fix target for new tab
- #2240 by @OliverWales –
- Add
allowedSchemes
plugin option- Any URL schemes other than
http(s)
,mailto
andtel
must be added toallowedSchemes
, otherwise they will not be included in links
- Any URL schemes other than
- Add
- #2240 by @OliverWales –
upsertLink
:- Removed
isUrl
- Added
skipValidation
- Removed
- Check that URL scheme is valid when:
- Upserting links
- Deserializing links from HTL
- Passing
href
tonodeProps
- Rendering the
OpenLinkButton
inFloatingLink
- #2225 by @TomMorane – fix: hotkey
- #1829 by @osamatanveer –
- fix import
- #1955 by @zbeyens –
- feat:
LinkPlugin
new optionforceSubmit?: boolean
. When true and inserting a link,enter
key should submit even when url is invalid - fix: when inserting a link,
enter
key should now submit even another key is pressed - fix: hotkey to trigger floating link (
cmd+k
by default) should prevent default
- feat:
- #1892 by @zakishaheen – Wrap valid link in anchor element when inserting a break
- #1865 by @rawi96 –
TLinkElement
new optional proptarget
: allows you to control the linktarget
attribute. Default isundefined
(_blank
).
- #1783 by @zbeyens – fix: udecode/editor-protocol#70
- #1765 by @zbeyens – fix:
- overall, marks should be kept on link insert/edit
unwrapLink
: new optionsplit
- if true: split the link above anchor/focus before unwrapping
upsertLink
:- replaced
update
option byinsertTextInLink
: if true, insert text when selection is in url upsertLinkText
: If the text is different than the link above text, replace link children by a new text. The new text has the same marks than the first text replaced.
- replaced
- specs:
- #1715 by @tmilewski – Fix FloatingLinkUrlInput snapping to the previous location on show and to the bottom of the editor upon clicking outside of the element
- #1697 by @zbeyens – fix: copy/paste was blocked by the link plugin. Now it should work when the data is not a url and not inserted into a link
- #1677 by @zbeyens –
createLinkPlugin
- removed
onKeyDownLink
for floating link - removed
hotkey
fortriggerFloatingLinkHotkeys
- removed
- removed:
getAndUpsertLink
forupsertLink
upsertLinkAtSelection
forupsertLink
LinkToolbarButton
:onClick
now callstriggerFloatingLink
-
- new dep:
@udecode/plate-button
- new unstyled components + props hooks:
PlateFloatingLink
LinkRoot
FloatingLink
FloatingLinkEditRoot
FloatingLinkInsertRoot
FloatingLinkUrlInput
FloatingLinkTextInput
FloatingLinkEditButton
UnlinkButton
OpenLinkButton
- new store:
floatingLinkStore
LinkPlugin
new props:triggerFloatingLinkHotkeys
: Hotkeys to trigger floating link. Default is 'command+k, ctrl+k'
- new utils:
insertLink
submitFloatingLink
unwrapLink
upsertLink
createLinkNode
triggerFloatingLink
triggerFloatingLinkEdit
triggerFloatingLinkInsert
Specs:
- Insert data:
- Insert space:
- Floating link:
- Floating link insert:
- Floating link edit:
- Selection:
- new dep:
- #1687 by @davisg123 – Allow the link plugin to optionally specify a custom href for link text
- #1685 by @davisg123 – Allow the link plugin to optionally specify a custom href for link text
- #1257 by @tjramage –
- fix link upsert on space
getPointBefore
: will return early if the point before is in another block. RemovedmultiPaths
option as it's not used anymore.
- Updated dependencies [
a6bf8c5e
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
8aec270f
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
7ee21356
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
503956fd
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
b22c06aa
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
58f6fb53
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
6af469cd
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #1052
22da824e
Thanks @aj-foster! - Add keyboard shortcut for inserting a link at the current selection
- #1041
7ab01674
Thanks @aj-foster! - feat(link): Unwrap selected links when pasting a URL. Previously, pasting any text (including a URL) with an existing link selected would insert plain text. With this change, pasting a URL will unwrap any selected links and wrap a new link.
- Updated dependencies [
f1da7267
,35caf35d
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
58387c6d
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
f6c58134
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
ec4d5b7b
]:- @udecode/[email protected]
- @udecode/[email protected]
-
#918
7d045d8d
Thanks @zbeyens! - addslate-history
as a peerDep -
Updated dependencies [
7d045d8d
]:- @udecode/[email protected]
- @udecode/[email protected]
🎉 The Slate Plugins project has evolved to Plate 🎉
To migrate, install @udecode/plate[-x]
then find and replace all
occurrences of:
slate-plugins
toplate
SlatePlugins
toPlate
SlatePlugin
toPlatePlugin
This is the last version of
@udecode/slate-plugins[-x]
, please install@udecode/plate[-x]
.
- Updated dependencies [
7c26cf32
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
3a3eb1b8
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
75b39f18
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
abaf4a11
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
d906095d
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
42360b44
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
6e9068f6
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
15048e6f
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
b444071e
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
2cf618c3
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
7cbd7bd9
,806e1632
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
33605a49
,28f30c8a
,75e6d25d
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
dfbde8bd
,dfbde8bd
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
201a7993
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]