Skip to content

Commit

Permalink
added right pointing arrow and changed icon
Browse files Browse the repository at this point in the history
  • Loading branch information
umaidshahid committed Jun 5, 2024
1 parent 41d0019 commit 5fcd936
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion a11y-links.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions icons/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions scratch/compiled/demo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scratch/compiled/demo.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/ts/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare const tinymce: TinyMCE;

const setup = (editor: Editor, url: string): void => {

editor.ui.registry.addIcon('custom-links-icon', '<img src="/icons/links.svg " style="height: 25px; width: 25px;"/>');
editor.ui.registry.addIcon('custom-links-icon', '<img src="/icons/arrow.svg " style="height: 25px; width: 25px;"/>');
editor.ui.registry.addButton('a11y-links', {
icon: 'custom-links-icon',
tooltip: 'Accessible Links',
Expand Down Expand Up @@ -41,7 +41,7 @@ const setup = (editor: Editor, url: string): void => {
downArrow: '<span class="down-arrow" aria-hidden="true">&darr;</span>',
topPage: '<span class="top-page" aria-hidden="true">&mapstoup;</span>',
neArrow: '<span class="ne-arrow" aria-hidden="true">&nearr;</span>',
rightArrow: '<span class="right-arrow" aria-hidden="true">&#x1f517;</span>',
rightArrow: '<span class="right-arrow" aria-hidden="true">&#x2192;</span>',
overlappingSquares: '<span class="overlapping-squares" aria-hidden="true">&#x1F5D7;</span>',
customSvg: data.customSvgSymbol ? data.customSvg : ''
};
Expand Down

0 comments on commit 5fcd936

Please sign in to comment.