sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
457 stars 191 forks source link

feat: link toolbar show/hide 'Open in new tab' option #528

Closed paulirwin closed 7 months ago

paulirwin commented 8 months ago

This PR contains:

Breaking Changes?

Checklist

Describe Your Changes

This adds a new option for the Link toolbar icon/popup to disable the "Open in new tab" option from showing in the UI, for i.e. a Markdown serializer where target is not supported. Specifying "link" as a ToolbarItem is still supported and the default is to show the "Open in new tab" option, but you can now pass an object instead to specify its options via { link: { showOpenInNewTab: false } }, similar to the heading toolbar item.

Does this PR affects any existing issues?

sibiraj-s commented 7 months ago

Published in v17.0.2

github-actions[bot] commented 6 months ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.