PHPackages                             artur-gajewski/content-editable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. artur-gajewski/content-editable

ActiveModule[Utility &amp; Helpers](/categories/utility)

artur-gajewski/content-editable
===============================

This module provides a way to make any HTML tag's inner content editable in TEXTAREA editor.

5142PHP

Since Sep 27Pushed 13y ago2 watchersCompare

[ Source](https://github.com/artur-gajewski/ContentEditable)[ Packagist](https://packagist.org/packages/artur-gajewski/content-editable)[ RSS](/packages/artur-gajewski-content-editable/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ContentEditable module for Zend Framework 2
===========================================

[](#contenteditable-module-for-zend-framework-2)

This module provides a way to make any HTML tag's inner content editable in TEXTAREA editor.

ContenEditable does not provide code to do data saving, just a very easy interface to get your website editable and edited data to your application controller.

You will have to implement data processing yourself.

Requirements:

- PHP 5.3
- Zend Framework 2
- rwoverdijk/assetmanager @
- jQuery
- jQuery-UI

Note: jQuery and jQuery-UI are bundled with this module and available out-of-the-box. You can override the bundled version with your own with minimal effort.

Follow me on twitter: @GajewskiArtur

Live demo
---------

[](#live-demo)

You can go ahead and try the live demo of ContentEditable module at

Click on any of the three columns on the front page to edit their content. Once done, click outside the div to get confirmation to save modifications. Third column will give an error status since it has a data-url that is not available.

Please note: This is a demo, no data is actually saved and will revert to original content on page reload.

Installation with Composer
--------------------------

[](#installation-with-composer)

Go to your project directory and add the following line to "require" list in composer.json file:

```
"artur-gajewski/content-editable": "dev-master"
```

Now run the Composer:

```
php composer.phar install
```

Then add 'ContentEditable' and 'AssetManager' modules into the Module array in APPLICATION\_ROOT/config/application.config.php

```
