quantaforge/texteditor

JavaScript web text editor (for quantaforge).

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Language:JavaScript

v1.0.0 2023-10-15 13:53 UTC

This package is auto-updated.

Last update: 2024-12-15 16:33:04 UTC


README

Note

This is NOT the official TEXTEDITOR package.

TEXTEDITOR officially has its own composer package since 2014. Instead of using this package, we recommend you follow the official CKEditor installation instructions with package managers

Installation

Set up package

composer require quantaforge/quantaforge-texteditor

Add ServiceProvider

For QuantaForge 5.5+ you can skip this step.

For QuantaForge 5.4 and earlier edit config/app.php, add the following file to Application Service Providers section.

QuantaForge\TextEditor\ServiceProvider::class,

Publish the resources

php artisan vendor:publish --tag=texteditor

Usage

Default way (initiate by name or id) :

    <script src="/vendor/quantaforge/quantaforge-texteditor/texteditor.js"></script>
    <script>
        TEXTEDITOR.replace( 'article-texteditor' );
    </script>

Or if you want to initiate by jQuery selector :

    <script src="/vendor/quantaforge/quantaforge-texteditor/texteditor.js"></script>
    <script src="/vendor/quantaforge/quantaforge-texteditor/adapters/jquery.js"></script>
    <script>
        $('textarea').texteditor();
        // $('.textarea').texteditor(); // if class is prefered.
    </script>

File Uploader Integration

Instead of using KCFinder, we recommend quantaforge-filemanager for the file uploader integration for better quantaforge user access control and specific per user folders.