Download the PHP package mhsdesign/liveinspectordomchange without Composer

On this page you can find all versions of the php package mhsdesign/liveinspectordomchange. 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 liveinspectordomchange

[!WARNING]
This package is deprecated!

While declarative syntax is cool, the matter is simply too complex to have a seemingles simple framework like this.

Its recommended to create a custom / well suited implemenation with the library https://github.com/mhsdesign/MhsDesign.LiveInspectorJsEvents instead of relying on this opinionated package.

For a tutorial to use the recommended library see: https://github.com/mhsdesign/MhsDesign.LiveInspectorJsEvents#tutorial-for-a-self-made-implementation

This package will likely be not declared compatible with Neos 8 as there are only very little usages left.

Edit your Neos Site with more* live feedback!

*Neos features already a great inline editor: www.neos.io

Neos CMS Plugin for live inspector editing:

MhsDesign.LiveInspectorDomChange

(the most non-advertising name - but thats what happening)

Install this package via composer:

Demo Video: demo-live-changer-neos (2) thanks, @Sebobo for https://github.com/Sebobo/Shel.Neos.ColorPicker

Usage

Activate live inspector editing in your Fusion component:

A basic (standalone) nodeType with a select box (nothing special in here)

This Fusion will allow to change the class:

The EEL Helper Editable.attributes will return an array of attributes which need to be applied via Fusion @apply or as AFX spread on the HTML element that should be updated live.

(Those spreads work exacly like in Js World: <p {... {'key': 'value'} }></p> will be rendered as <p key="value"></p>)

The EEL Helper will render those attributes only in the backend into your markup.

Multiple Editable.attributes on one HTML element:

just add two spreads on the same HTML element. <div {...Editable.attributes()} {...Editable.attributes()}></div>

you can also concat them beforehand via: Array.concat(Editable.attributes(), Editable.attributes()) and apply this as a spread to your HTML element.

note that multiple editable attributes on one HTML element must come from the same node!

API:

EEL Helper

JavaScript 'Changer' functions

All functions must be 'registered' on the global object liveChangeFunctions.

Predefined functions:

* yes I'm evil for using eval.

Create a custom JavaScript 'Changer' function

Add this to your JavaScript in the backend iframe.

Use it like:

FAQ:

I dont want to pollute my Fusion:

see #1

Limitations:

Internal workings:

The live updates are evaluated via the nodes contextPath. that means that as long as you specify the right node as parameter to the Editable.attributes, it will work.

for more information look at the tests ;) ./Tests/JavaScript/ ./Tests/Unit/

Test:

run the phpunit tests from your flow root:

run the JavaScript jest test in the location ./Tests/JavaScript

MhsDesign.LiveInspectorJsEvents

this Package relies on the Package MhsDesign.LiveInspectorJsEvents https://github.com/mhsdesign/MhsDesign.LiveInspectorJsEvents. Which sends the JavaScript events to the iframe.


All versions of liveinspectordomchange with dependencies

PHP Build Version
Package Version
Requires neos/neos Version ^5.0 || ^7.0
neos/flow Version ^6.0 || ^7.0
mhsdesign/liveinspectorjsevents Version ^1.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 mhsdesign/liveinspectordomchange contains the following files

Loading the files please wait ....