PHPackages                             ekremogul/tena-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ekremogul/tena-editor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ekremogul/tena-editor
=====================

TenaHaber EditorJS Helper

v1.1(2y ago)07MITPHP

Since May 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ekremogul/tena-editor)[ Packagist](https://packagist.org/packages/ekremogul/tena-editor)[ RSS](/packages/ekremogul-tena-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

The Tena Editor Package acts as a parser for the EditorJS package.
------------------------------------------------------------------

[](#the-tena-editor-package-acts-as-a-parser-for-the-editorjs-package)

### It was created by combining [editor-js/editorjs-php](https://github.com/editor-js/editorjs-php) and [alaminfirdows/laravel-editorjs](https://github.com/editor-js/editorjs-php) packages.

[](#it-was-created-by-combining-editor-jseditorjs-php-and-alaminfirdowslaravel-editorjs-packages)

### Special thanks to the developers

[](#special-thanks-to-the-developers)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ekremogul/tena-editor
```

You can publish the config file with:

```
php artisan vendor:publish --tag="tena-editor-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="tena-editor-views"
```

Usage
=====

[](#usage)

```
use Ekremogul\TenaEditor\TenaEditor;
use App\Models\Post;

$post = Post::find(1);
echo TenaEditor::render($post->body);

// Or use in blade
{!! \Ekremogul\TenaEditor\TenaEditor::render($post->body) !!}
```

#### Defining An Accessor

[](#defining-an-accessor)

```
