Download the PHP package swatty007/laravel-inline-editor without Composer

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

Inline Editor for Laravel based projects

Latest Stable Version Latest Unstable Version Total Downloads License

Simple inline editor toolbar, to update the content of any HTML block, or specific DB table.

This package is an updated version of dyusha/laravel-html-editor with some additional functionality and updated dependencies.

Installation

Download this git repo, or install it via composer:

composer require swatty007/laravel-inline-editor

Also make sure to get our npm dependencies:

npm install vue vue-resource medium-editor vue-sweetalert2 --save

Configuration

Note, Optional in Laravel 5.5 or +

Add the following to your config file:

Initial Setup

Run: php artisan vendor:publish

php artisan migrate

Customization

You can publish the configuration files of the package, to tweak its behaviour or appearance:

php artisan vendor:publish

To change the default behaviour of the medium editor simply override the options setting in the config file:

By default js and sass assets will be published to /resources/assets/js/components and /resources/assets/sass/plugins directories respectively. To change this, just update the following paths in your config file:

Usage

This package provides custom Blade directives @inlineEditor and @endInlineEditor which can be used to wrap blocks of HTML that should be editable. For example if somewhere in your template you will have the following code:

Simple
Saves the containing HTML content in the laravel-inline-editor table under the key item01.

Custom Table
To save the containing HTML in a custom table, just specify, the table name, source & target keys. If no source, or target keys are defined the defaults key and content will be used.

Custom Options

You can override the default options for the medium editor by overriding the default options:

For details check the medium js documentation: https://github.com/yabwe/medium-editor#mediumeditor-options

Note Look at the configuration settings to override the default options

Properties

  1. Source Value - DB row, where we are looking for our source key.
  2. Table - will override at which table we are looking for the above defined value.
  3. Source Key - allow overwriting the DB row at which we are looking for our source value.
  4. Target Key - allow overwriting the DB row at which will be updated.
  5. Editor Options - allows you to specify additional options for the medium editor.
  6. Validation Rules - Allows you to define a set of custom validation rules.
  7. Strip HTML - Strips all HTML elements from the given input string, before saving it into the DB.

The first time it's being rendered directive will try to find the content of your element by its defined key in the default database, if not specified otherwise. If it is present then its content will be rendered on the page.

Otherwise new HTML block will be created with the given parameters. You can put any HTML markup between @inlineEditor and @endInlineEditor directives.

Workflow

When you press Accept changes button <html-manager> component will send POST request to /inline-content-block with blocks param that will contain all changed HTML blocks.

License

This library is licensed under the MIT license. Please see LICENSE for more details.


All versions of laravel-inline-editor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
illuminate/support Version 5.*|6.*|7.*|8.*
illuminate/database Version ^6.20.14|7.*|8.*
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 swatty007/laravel-inline-editor contains the following files

Loading the files please wait ....