All Projects → editor-js → warning

editor-js / warning

Licence: MIT license
Warning Tool for CodeX Editor 2.0

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Labels

Projects that are alternatives of or similar to warning

capella
Cloud service for image storage and delivery
Stars: ✭ 116 (+673.33%)
Mutual labels:  codex
Codex
A free note-taking software for programmers and Computer Science students
Stars: ✭ 242 (+1513.33%)
Mutual labels:  codex
awesome-codex
A list dedicated to products, demos and articles related to 🤖 OpenAI's Codex.
Stars: ✭ 115 (+666.67%)
Mutual labels:  codex
inline-code
Inline-Code Tool for Editor.js 2.0
Stars: ✭ 32 (+113.33%)
Mutual labels:  codex
link
Link Tool for Editor.js 2.0
Stars: ✭ 61 (+306.67%)
Mutual labels:  codex
editorjs-style
Inline-style Tool for Editor.js
Stars: ✭ 23 (+53.33%)
Mutual labels:  codex
simple-image
Simple Image Tool for Editor.js 2.0
Stars: ✭ 36 (+140%)
Mutual labels:  codex
editorjs-inline
Inline-Editor.js Tool for Editor.js
Stars: ✭ 23 (+53.33%)
Mutual labels:  codex
language-planner
Official Code for "Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents"
Stars: ✭ 84 (+460%)
Mutual labels:  codex
zsh codex
This is a ZSH plugin that enables you to use OpenAI's Codex AI in the command line.
Stars: ✭ 787 (+5146.67%)
Mutual labels:  codex
fix
Allows you to use OpenAI Codex to fix errors in the command line.
Stars: ✭ 72 (+380%)
Mutual labels:  codex
vim codex
This is a simple plugin for Vim that allows you to use OpenAI Codex.
Stars: ✭ 181 (+1106.67%)
Mutual labels:  codex

Warning Tool

Provides Warning Block for the CodeX Editor. Block has title and message. It can be used, for example, for editorials notifications or appeals.

Installation

Install via NPM

Get the package

npm i --save-dev @editorjs/warning

Include module at your application

const Warning = require('@editorjs/warning');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load specific version of package from jsDelivr CDN.

https://cdn.jsdelivr.net/npm/@editorjs/warning@latest

Then require this script on page with CodeX Editor.

<script src="..."></script>

Usage

Add a new Tool to the tools property of the CodeX Editor initial config.

var editor = CodexEditor({
  ...
  
  tools: {
    ...
    warning: Warning,
  },
  
  ...
});

Or init Warning Tool with additional settings

var editor = CodexEditor({
  ...
  
  tools: {
    ...
    warning: {
      class: Warning,
      inlineToolbar: true,
      shortcut: 'CMD+SHIFT+W',
      config: {
        titlePlaceholder: 'Title',
        messagePlaceholder: 'Message',
      },
    },
  },
  
  ...
});

Config Params

Field Type Description
titlePlaceholder string Warning Tool's title placeholder
messagePlaceholder string Warning Tool's message placeholder

Output data

Field Type Description
title string warning's title
message string warning's message
{
    "type" : "warning",
    "data" : {
        "title" : "Note:",
        "message" : "Avoid using this method just for lulz. It can be very dangerous opposite your daily fun stuff."
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].