Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fxcjahid/laravel-editor-js-html
This Package converts editorjs blocks into html
https://github.com/fxcjahid/laravel-editor-js-html
editojs editorjs-to-html laravel
Last synced: about 2 months ago
JSON representation
This Package converts editorjs blocks into html
- Host: GitHub
- URL: https://github.com/fxcjahid/laravel-editor-js-html
- Owner: fxcjahid
- License: mit
- Created: 2023-02-25T19:41:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T16:26:35.000Z (over 1 year ago)
- Last Synced: 2024-12-01T10:29:29.994Z (about 2 months ago)
- Topics: editojs, editorjs-to-html, laravel
- Language: Blade
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![laravel-editorjs-html](https://github.com/fxcjahid/Laravel-editor-js-html/assets/33903532/22ac126c-f8de-411b-b72f-20517c6c54a9)
# Laravel Editor JS Html
This package conver EditorJs to pure Html
## Install
1. Install package
``` bash
composer require fxcjahid/Laravel-editor-js-html
```2. Add provider in `config/app.php`
```PHP
fxcjahid\LaravelEditorJsHtml\LaravelEditorJsHtmlProvider::class,
```Supported Blocks and tools:
- [Heading](https://github.com/editor-js/header)
- [Quote](https://github.com/editor-js/quote)
- [Image](https://github.com/editor-js/image)
- [Simple Image](https://github.com/editor-js/simple-image) (without backend requirement)
- [Nested List](https://github.com/editor-js/nested-list)
- [Checklist](https://github.com/editor-js/checklist)
- [Link embed](https://github.com/editor-js/link)
- [Embeds](https://github.com/editor-js/embed) ( YouTube, Twitch, Vimeo, Gfycat, Instagram, Twitter, etc )
- [Table](https://github.com/editor-js/table)
- [Delimiter](https://github.com/editor-js/delimiter)
- [Warning](https://github.com/editor-js/warning)
- [Code](https://github.com/editor-js/code)
- [Raw HTML](https://github.com/editor-js/raw)
- [Attaches](https://github.com/editor-js/attaches)
- [Marker](https://github.com/editor-js/marker)
- [Inline Code](https://github.com/editor-js/inline-code)See the [😎 Awesome Editor.js](https://github.com/editor-js/awesome-editorjs) list for more tools.
## Suggest
* https://github.com/codex-team/editor.js
## Usage
Convert blocks into HTML
```php
use Fxcjahid\LaravelEditorJsHtml\BlocksManager;$blocksManager = new BlocksManager($data);
$html = $blocksManager->renderHtml();
echo $html
```