Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-link

Package Overview
Dependencies
3
Maintainers
1
Versions
512
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-link


Version published
Maintainers
1
Created

Package description

What is @ckeditor/ckeditor5-link?

@ckeditor/ckeditor5-link is a plugin for CKEditor 5 that allows users to create, edit, and manage links within the editor. It provides a user-friendly interface for adding hyperlinks to text, ensuring that the links are properly formatted and functional.

What are @ckeditor/ckeditor5-link's main functionalities?

Adding a Link

This feature allows users to add hyperlinks to selected text within the editor. The toolbar includes a link button that opens a dialog for entering the URL.

ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Link ], toolbar: [ 'link' ] })

Editing a Link

This feature allows users to edit existing links. Users can change the URL or the display text of the link through the editor's interface.

editor.model.change(writer => { const linkElement = writer.createElement('link', { href: 'https://example.com' }); writer.insert(linkElement, editor.model.document.selection.getFirstPosition()); });

Removing a Link

This feature allows users to remove hyperlinks from the text. The link is removed, but the text remains intact.

editor.model.change(writer => { const selection = editor.model.document.selection; const range = selection.getFirstRange(); writer.removeAttribute('linkHref', range); });

Other packages similar to @ckeditor/ckeditor5-link

Readme

Source

npm version Coverage Status Build Status Dependency Status

This package implements the link feature for CKEditor 5. It allows for inserting hyperlinks into the edited content and offers the UI to create and edit them.

Demo

Check out the demo in the link feature guide.

Documentation

See the @ckeditor/ckeditor5-link package page in CKEditor 5 documentation.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file or https://ckeditor.com/legal/ckeditor-oss-license.

Keywords

FAQs

Last updated on 07 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc