@dankolz/ck-single-column
v1.0.0
Published
Adds a wiget to the ck editor which shows a single column layout, but it allows the user to set styles on a block, margins, padding, etc.
Downloads
7
Readme
ck-single-column
Adds a wiget to the ck editor which shows a single column layout, but it allows the user to set styles on a block, margins, padding, etc.
Install
npm install @dankolz/ck-single-columnUse
CK Editor Config
Add single-column to the ck editor config file like
config.extraPlugins = (config.extraPlugins ? config.extraPlugins + ',' : '') + 'single-column'Webhandle Server Side
This is safe to run multiple times. It adds the file resources to the webhandle environment.
import('@dankolz/ck-single-column').then(mod => {
mod.default()
})Styles
Add styles to your less build like:
@import "../node_modules/@dankolz/ck-single-column/less/components";It's optional but small.
Adding a widget to the panel
The widget is automatically added to the panel.
