Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
colonel-kurtz
Advanced tools
A block based content editor powered by React. Colonel Kurtz provides a front-end for building pages as a series of blocks, serializing to a JSON data structure.
Colonel Kurtz is a content editor written in React. It forces content to be broken up into individual types, such as a photo or chunk of text, and provides a user interface for managing those "blocks" of content, reordering them, and even nesting them inside other content.
Comprehensive documentation can be found under the ./docs
directory
of this repo. However the content that follows should provide a high
level overview:
Colonel Kurtz can be serialized down to JSON. This structure looks like:
[
{
"blocks": [],
"content": {
"html": "<p>This is introductory text.<br></p>",
"text": "This is introductory text."
},
"type": "medium"
},
{
"blocks": [
{
"blocks": [],
"content": {
"src": "http://fizbuz.com/image.jpg"
},
"type": "image"
},
{
"blocks": [],
"content": {
"html": "<p>Sweet, sweet content.<br></p>",
"text": "Sweet, sweet content."
},
"type": "medium"
}
],
"type": "section"
},
{
"blocks": [],
"content": {
"html": "<p>This is footer text.<br></p>",
"text": "This is footer text."
},
"type": "medium"
}
]
A block has three important pieces of information:
More thorough documentation can be found at
./docs/colonel.md
however at a high level, Colonel Kurtz is installed with code loosely following:
var ColonelKurtz = require('colonel-kurtz');
var container = document.querySelector("#container")
var input = document.querySelector("#input")
var editor = new ColonelKurtz({
el : container,
blocks : JSON.parse(input.value),
blockTypes : [{
id: 'a-block',
label: 'This is a block',
component: require('./path/to/react/component')
}]
});
2.12.0
colonel-kurtz/addons
, their colonel-kurtz/build
counterparts
have been removed. This is due to a change in the build process to
help expose components for use when building new UI../docs/menus.md
./style/addons
so that it is
easier to pull down all styles at once or reference the directory in
node_modules
.This release has a breaking change to improve the ease of including React components defined by Colonel Kurtz when building new block types. If you are including addons, the following change is necessary:
In the case of the YouTube component addon, in the previous release it can be included using:
let YouTube = require('colonel-kurtz/build/addons/youtube')
This has now become:
let YouTube = require('colonel-kurtz/addons/youtube')
FAQs
A block editor
The npm package colonel-kurtz receives a total of 40 weekly downloads. As such, colonel-kurtz popularity was classified as not popular.
We found that colonel-kurtz demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.