Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Livewire Jodit Text Editor Laravel Package

xslain/livewire-jodit-text-editor

View on GitHub
Deep Wiki
Context7

✨ Introduction

A powerful Livewire rich text editor (WYSIWYG) component that build top of Jodit Editor.

To use this package, you must have Livewire 3 installed.

📦 Installation

Seconds install this package via Composer:

composer require xslain/livewire-jodit-text-editor

Include the Jodit Editor theme and the library in your layout or specific view.

<!-- Include Jodit CSS Styling -->
<link rel="stylesheet" href="//unpkg.com/jodit@4.1.16/es2021/jodit.min.css">

<!-- Include the Jodit JS Library -->
<script src="//unpkg.com/jodit@4.1.16/es2021/jodit.min.js"></script>

Or you can use NPM to install the Jodit Editor directly in your project:

npm install jodit

Import it in your app.js like:

// Jodit Editor
import 'jodit/esm/plugins/resizer/resizer'; // Resizer plugin is used when inserting images
import 'jodit/esm/plugins/video/video'; // Video plugin is used to insert videos
// Feel free to add extra plugins here...
import { Jodit } from 'jodit';
window.Jodit = Jodit;

And in your app.scss like:

// Jodit Editor
@import 'jodit/es2021/jodit';

For additional information, kindly refer to the Jodit Editor documentation.

🎬 Showcase

Now you can use the text editor component as you like.

<livewire:jodit-text-editor wire:model.live="content" />

Or add the "buttons" attribute to define buttons dynamically.

<livewire:jodit-text-editor wire:model.live="content" :buttons="['bold', 'italic', 'underline', 'strikeThrough', '|', 'left', 'center', 'right', '|', 'link', 'image']" />

🎨 Tailor UI

The text editor component is entirely customizable. Just publish the view file and make it your own.

php artisan vendor:publish --tag=livewire-jodit-text-editor-views

🔄 Changelog

Please see CHANGELOG for more information on what has changed recently.

🤝 Contributing

Please see CONTRIBUTING for details.

❤️ Support Me

Is this plugin helpful to you? Let me know by connecting on LinkedIn or on X.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle