-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Previews for Navigation Link Blocks #36412
Conversation
Size Change: +23 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
In order to address 2. — enabling rich previews on the navigation editor — from #32555, we have to import packages/edit-navigation/src/index.js import {
__experimentalFetchUrlData, // import this
__experimentalFetchLinkSuggestions as fetchLinkSuggestions,
store as coreStore,
} from '@wordpress/core-data';
// ...
const editorSettings = useMemo(() => {
return {
...settings,
__experimentalFetchLinkSuggestions,
__experimentalSetIsInserterOpened,
__experimentalFetchRichUrlData: __experimentalFetchUrlData // pass it to the settings
};
}, [
settings,
__experimentalFetchLinkSuggestions,
__experimentalSetIsInserterOpened,
]); |
Ahh, thanks @vcanales - I was checking the editor in FSE not in the navigation editor itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
537c451
to
22afda0
Compare
Closes #32555
Description
Adds rich previews for Navigation Links
How has this been tested?
Tested in post editor and navigation editor.
Screenshots
Screen.Recording.2021-11-11.at.11.15.23.AM.mov
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).