npm.io
3.0.0 • Published 5 years ago

ckeditor-featureblock

Licence
GPL-2.0
Version
3.0.0
Deps
0
Size
33 kB
Vulns
0
Weekly
0
Stars
1

ckeditor-featureblock

The Feature Block (labeled "Feature Box" in the UI) is a custom CKEditor plugin for the CKEditor WYSIWYG. The output is basically a title with a content body. This makes it useful for highlighting some content in the main body of text.

It also provides an option for alignment within the page.

Markup output:

<feature-block class="u-width--half u-align--right">
  <div slot="figure"><img src="/my-image.png"></div>
  <div slot="title">Title</div>
  <div slot="body"><p>Content</p></div>
</feature-block>

This markup can be used as a web component or filtered on output to display any desired markup. The advantage of this data model is that it is now based on a standard web component.

Keywords