1.2.5 • Published 3 years ago

@budgetthuis/ckeditor5-custom-button-element-plugin v1.2.5

Weekly downloads
-
License
GPL-2.0-or-later
Repository
github
Last release
3 years ago

ckeditor5-button-element-plugin

Plugin for ckeditor5 to insert a custom tag <button> into the editor (MVP)

Install

NPM Install:

  • npm install @budgetthuis/ckeditor5-custom-button-element-plugin

Show Add button tag in editor

add to your editor js:

How does it work

If added to editor you will see an icon with a hand. Click on it and you will see 3 popups:

  • url for the button
  • width (in percentage of the editor width)
  • text for the button

Clicking on the button that was added in the editor and then the text can be changed.

model & view

Model: <ButtonFrame href="urlforbutton" width="widthforbutton" style="width:widthforbutton%;">Text for button</ButtonFrame>

View: <button href="urlforbutton" width="widthforbutton" style="width:widthforbutton%;">Text for button</button>

styling the button in editor

In your editor styling you can add styling for ck-content button to style the button according to your own styles.

Note

Version 1.x.x is the first version of this button-element. It's an MVP.

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago