Skip to content

Commit

Permalink
Assume selection is text when creating a link (strapi#8071)
Browse files Browse the repository at this point in the history
Fixes strapi#7890

Signed-off-by: Jonas De Kegel <jonas@fluid.desi>
  • Loading branch information
jlsjonas authored and hdeadman committed Sep 29, 2020
1 parent 2150746 commit 9e2d443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const CONTROLS = [
className: 'link',
hideLabel: true,
handler: 'addContent',
text: '[text](textToReplace)',
text: '[textToReplace](link)',
},
{
label: 'quotes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function getBlockContent(style) {
};
case 'LINK':
return {
innerContent: 'link',
endReplacer: ')',
startReplacer: '[text](',
innerContent: 'text',
endReplacer: ']',
startReplacer: '[',
};
default:
return {
Expand Down

0 comments on commit 9e2d443

Please sign in to comment.