Smart Linking: Implement "Apply to selection" mode
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 66
- Forks
- 36
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 16
Description
Is your feature request related to a problem?
Currently, our Smart Linking feature checks the selected block or whole post and determines the location where links should be inserted. This is fine, but to quote @jbao:
PCI users have often complained about the lack of flexibility in selecting the anchor word length, sometimes they already have some specific word/phrase in mind that they want to add link to, or they’re not happy with the link suggestion results and want to extend/shrink the suggested anchor words. In all these cases, we can provide users with more flexibility by adding Smart Linking to the toolbar, so that they can pre-select the best anchor words of their choice, click on the smart link icon. Our API will then suggest links based on the relevance to the anchor words, and return them in a dropdown menu.
Describe the solution you'd like
Add a Smart Linking icon to the toolbar, which will allow Smart Linking to run for the currently selected text. We still need to determine how the whole flow/UX should be when we start working on this.
Additional context
@jbao, wanted to check with you whether we'd be ready from an API standpoint regarding this, or if API work would be needed to make this possible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are identified in the issue. Start by clarifying the toolbar flow for pre-selected text and whether the existing API supports anchor-word suggestions; done means Smart Linking can be invoked from the toolbar for selected text and presents relevant links in a dropdown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100