ckeditor5-cta-link

1.0.17 • Public • Published

CTA Link embed plugin

Simple plugin for creating a CTA link with class button.

Note that this plugins only creates an link with the class 'button'

Initialize

Import the plugin

import Button from ' ckeditor5-cta-link/button'

Include the plugin

Editor.builtinPlugins = [
    Button
]

Add the button to the toolbar

Editor.defaultConfig = {
    toolbar: {
        items: [
            'button'
        ]
    }
}

Usage

  • Click on the Call to Action button in the toolbar
  • Enter the button text
  • Enter the button link
  • The button is created

Structure

The plugin will add the element as shown below

<a class="button" target="blank" href="https://link.com" alt="Call to action">Call to action</a>

Package Sidebar

Install

npm i ckeditor5-cta-link

Weekly Downloads

14

Version

1.0.17

License

ISC

Unpacked Size

6.28 kB

Total Files

6

Last publish

Collaborators

  • fishionaire