Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Aug 30, 2024
1 parent f0e1335 commit e5fe984
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/tools/internal/inline-tools/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ export default class LinkInlineTool implements InlineTool {
* @returns rendered data form element with options required in toolbar
*/
public renderActions(callback: (data: InlineToolFormatData) => void): ActionsElementWithOptions | null {
const dataFormerElement = make('input') as HTMLInputElement;
const linkInput = make('input') as HTMLInputElement;

dataFormerElement.addEventListener('keydown', (event: KeyboardEvent) => {
linkInput.addEventListener('keydown', (event: KeyboardEvent) => {
if (event.key === 'Enter') {
callback({ link: dataFormerElement.value });
callback({ link: linkInput.value });
}
});

return { element: dataFormerElement };
return { element: linkInput };
}
}

0 comments on commit e5fe984

Please sign in to comment.