Download the PHP package ptnghia/laravel-tiptap-editor without Composer

On this page you can find all versions of the php package ptnghia/laravel-tiptap-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 laravel-tiptap-editor

Laravel Tiptap Editor

PHP Laravel

A full-featured Laravel package providing a rich text editor built on Tiptap v2, Bootstrap 5 (or Tailwind CSS), with media management, server-side rendering, and optional AI content generation. Works with standard Laravel + Blade — no SPA required.


✨ Features


Requirements

Dependency Version
PHP 8.2+
Laravel 11.x or 12.x

Pre-built JS/CSS assets are included in dist/ — no Node.js required for production use.


Installation

1. Install via Composer

The service provider and facade are auto-discovered.

2. Publish Assets

Optional:

3. Include Assets in Your Layout


Basic Usage

Blade Component

Component Props

Prop Type Default Description
name string 'content' Hidden input field name
value string\|array\|null null Initial content (Tiptap JSON array or JSON string)
config array [] Override editor configuration
placeholder string From lang file Editor placeholder text
disabled bool false Render editor as read-only
id string\|null Auto-generated HTML id for the wrapper element

Read Submitted Content

The editor submits a JSON string via the named hidden input:


Server-side Rendering

Via Facade

Via Eloquent Trait

Available methods:


Configuration

Publish and edit config/tiptap-editor.php:

Extensions

Enable or disable individual features:

Toolbar Groups

Override per-instance in Blade:

Theme

Output Theme (Tailwind CSS)

By default the server-rendered HTML uses Bootstrap 5 classes. Switch to Tailwind with a single config change:

Note: output_theme only affects rendered output HTML (e.g. TiptapEditor::render()). The editor admin UI is unaffected.

Tailwind purge — Tailwind purges classes at build time. Add the safelist below to tailwind.config.js in your host app so dynamic content classes are not stripped:

Alternatively, enable tailwind_fallback_css (zero-config, no Tailwind install required) — a pre-built stylesheet covering all package classes is published to public/vendor/tiptap-editor/css/tailwind-fallback.css.

Media Settings

Upload Security & Permissions

Setting up Gate-based permissions

Role-based permissions (Spatie/Permission)

Link & Sanitization Settings

Control which HTML attributes are allowed in the rendered output:

URL safety is always enforced:

External links (target="_blank") automatically receive rel="noopener noreferrer".

Table Rendered Output

By default tables render as <table class="table table-bordered">. After publishing views you can customise resources/views/vendor/tiptap-editor/renders/table.blade.php to add table-striped, table-hover, etc.

Video Providers

Route Settings

Package routes:

Method URL Name
POST /tiptap-editor/media/upload tiptap-editor.media.upload
GET /tiptap-editor/media/browse tiptap-editor.media.browse
DELETE /tiptap-editor/media/{id} tiptap-editor.media.delete
POST /tiptap-editor/ai/generate tiptap-editor.ai.generate
POST /tiptap-editor/ai/refine tiptap-editor.ai.refine
POST /tiptap-editor/ai/summarize tiptap-editor.ai.summarize
POST /tiptap-editor/ai/translate tiptap-editor.ai.translate

AI routes are only registered when ai.enabled = true.


AI Content Generation (Optional)

Setup

Configuration

Use in PHP


Content Sanitization

The sanitizer:


Keyboard Shortcuts

Press Ctrl+/ (⌘/ on Mac) to open the shortcuts help modal.

Shortcut Action
Ctrl+B Bold
Ctrl+I Italic
Ctrl+U Underline
Ctrl+Shift+X Strikethrough
Ctrl+Alt+0 Paragraph
Ctrl+Alt+14 Heading 1–4
Ctrl+Shift+8 Bullet list
Ctrl+Shift+7 Ordered list
Ctrl+Shift+B Blockquote
Ctrl+Alt+C Code block
Ctrl+Z Undo
Ctrl+Shift+Z Redo
/ Slash command menu
Ctrl+/ Shortcuts help

Customizing Rendered HTML

After publishing views, edit the Blade partials in resources/views/vendor/tiptap-editor/renders/:

File Renders
paragraph.blade.php <p>
heading.blade.php <h1><h4>
image.blade.php <figure><img> with optional caption
video.blade.php <iframe> (YouTube / Vimeo) or <video> (MP4)
bootstrap-row.blade.php <div class="row">
bootstrap-col.blade.php <div class="col-*">
alert.blade.php <div class="alert alert-*">
card.blade.php Bootstrap card (header / body / footer)
button.blade.php <a class="btn btn-*">
gallery.blade.php Responsive image grid
gallery-image.blade.php Single gallery image
table.blade.php <table class="table">
list.blade.php <ul> / <ol>
blockquote.blade.php <blockquote>
code-block.blade.php <pre><code>
horizontal-rule.blade.php <hr>

Extending

Custom Node Renderer

Custom AI Provider


Internationalization

Includes en and vi translations. Publish to customise or add new locales:


Testing

214 tests, 440 assertions covering HTML rendering, sanitization, content validation, media, tables, AI providers, gallery, traits, config, and translations.


Directory Structure


License

MIT License. See LICENSE for details.


Changelog

v1.3.0 — 2026-03-01

Tailwind CSS Output Theme

Breaking changes: None — output_theme defaults to 'bootstrap'.

v1.1.0

Media Library

Upload Security & Permissions

SVG Security

CSS Injection Prevention

Other

v1.0.0 – 2026-02-27

Initial release.

Core

UX

AI (optional)

Other


All versions of laravel-tiptap-editor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
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 ptnghia/laravel-tiptap-editor contains the following files

Loading the files please wait ...