Download the PHP package syntaxphoenix/editorjs-symfony-parser-bundle without Composer
On this page you can find all versions of the php package syntaxphoenix/editorjs-symfony-parser-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download syntaxphoenix/editorjs-symfony-parser-bundle
More information about syntaxphoenix/editorjs-symfony-parser-bundle
Files in syntaxphoenix/editorjs-symfony-parser-bundle
Package editorjs-symfony-parser-bundle
Short Description A parser-bundle for editorjs and symfony
License
Informations about the package editorjs-symfony-parser-bundle
EditorJS Symfony Parser Bundle
Table of Contents
-
About The Project
- Built With
-
Usage
- Installation
- Supported plugins
- Methods
- Roadmap
- Contributing
- License
- Contact
About The Project
The EditorJS-ParserBundle parses editorjs-configs Editor.js. It is designed to be best integrated in Symfony and also offers a Twig-Extension. The bundle is based on Durlecode/editorjs-simple-html-parser, but strongly improved the parsing by using an object-oriented approach.
Built With
Usage
Where $data
is the clean JSON data coming from Editor.js See $data
example below
Installation
Supported Plugins
Package | Key | Main CSS Class |
---|---|---|
@editorjs/code | code |
.prs-code |
@editorjs/embed | embed |
.prs-embed |
@editorjs/delimiter | delimiter |
.prs-delimiter |
@editorjs/header | header |
.prs-h{header-level} |
@editorjs/link | link |
.prs-link |
@editorjs/list | list |
.prs-list |
@editorjs/paragraph | paragraph |
.prs-paragraph |
@editorjs/raw | raw |
|
@editorjs/simple-image | simpleImage |
.prs-image |
@editorjs/image | image |
.prs-image |
@editorjs/warning | warning |
.prs-warning |
@editorjs/table | table |
.prs-table |
editorjs-alert | alert |
.prs-alert + .prs-alert-{type} |
editorjs-youtube-embed | youtubeembed |
.prs-youtubeembed |
If you want to add a new Parser for a specific editorjs-plugin you can fork the master and make a pull-request. Please also change the readme in that case and add the parser you have edited.
Methods
toHtml()
Return generated HTML
Generated HTML
Code
Embed
(Actually working with Youtube, Codepen & Gfycat)
Delimiter
Header
Link
Ordered List
Unordered List
Paragraph
Image
Warning
Raw
Alert
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the GPLv3 License. See LICENSE
for more information.
Contact
@SyntaxPhoenix - [email protected]
Project Link: https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle
All versions of editorjs-symfony-parser-bundle with dependencies
ext-json Version *
masterminds/html5 Version ^2.7
symfony/flex Version ^1.12
symfony/framework-bundle Version ^5.0
twig/twig Version ^3.3