Download the PHP package reazzon/editor without Composer

On this page you can find all versions of the php package reazzon/editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package editor

EditorJS for OctoberCMS

This plugin enables EditorJS to be used as a form widget for your backend panel. EditorJS is a versatile and modern content editor that stores content as JSON data, and renders it in any way you want.

Key features

Integrations ready:

Blocks supported:

What does it mean «block-styled editor»

Workspace in classic editors is made of a single contenteditable element, used to create different HTML markups. Editor workspace consists of separate Blocks: paragraphs, headings, images, lists, quotes, etc. Each of them is an independent contenteditable element (or more complex structure) provided by Plugin and united by Editor's Core.

There are dozens of ready-to-use Blocks and the simple API for creation any Block you need. For example, you can implement Blocks for Tweets, Instagram posts, surveys and polls, CTA-buttons and even games.

What does it mean clean data output

Classic WYSIWYG-editors produce raw HTML-markup with both content data and content appearance. On the contrary, Editor.js outputs JSON object with data of each Block.

Given data can be used as you want: render with HTML for Web clients, render natively for mobile apps, create markup for Facebook Instant Articles or Google AMP, generate an audio version and so on.

How to install

You can install this plugin via October packet manager inside backend panel, or run command below:

Usage

After installing plugin, you are now able to set in fields.yaml type: editorjs to any desirable field. You are not limited of how many editors can be rendered at one page.

How to enable integrations

  1. Make sure that the desirable plugin for integration is installed in system (list of supported plugins listed in Key Features section)
  2. Go to Settings
  3. Find Editor section and clock on EditorJs Settings button
  4. Enable desirable integrations

How to render HTML from EditorJS JSON

There are two ways of rendering EditorJS:

First: TWIG filter |editorjs

  1. You have model with type: editorjs field.
  2. Inside your theme use |editorjs filter to convert JSON data to html.

Second: Accessor inside your model

For example, you have content field, that has editorjs json data.

  1. Create accessor in your model. Note that your accessor should have different name.

  2. Use new attribute to render html wherever you want.

Create your own block

Blocks are called Tools in EditorJS ecosystem.

First, you need to follow official documentation of EditorJs and compile yourself js file with new tool.

After you got yours JS file, you can register it like all other tools registered inside tools folder.

  1. Create new plugin

  2. Create new file: /acme/foo/tools/ExampleTool.php

  3. Create view file with html of your block: /acme/foo/views/blocks/example.htm

  4. Put your compiled JS file inside assets/js folder, and name it accordingly, example exampleTool.js
  5. Register your new tool inside Plugin.php of your plugin

  6. Done! Your tool added to all editorjs.

Editor.js developed by CodeX Club of web-development. Adapted for OctoberCMS by Nick Khaetsky. reazzon.ru


All versions of editor with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.0
codex-team/editor.js Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package reazzon/editor contains the following files

Loading the files please wait ....