ckeditor5-cta-link
Version:
Link with button class for CTA
45 lines (34 loc) • 767 B
Markdown
# 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**
```javascript
import Button from ' ckeditor5-cta-link/button'
```
**Include the plugin**
```javascript
Editor.builtinPlugins = [
Button
]
```
**Add the button to the toolbar**
```javascript
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
```html
<a class="button" target="blank" href="https://link.com" alt="Call to action">Call to action</a>
```