PHPackages                             ivoaz/content-editable-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ivoaz/content-editable-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

ivoaz/content-editable-bundle
=============================

This bundle provides a twig extension for editable content with internationalization support.

090[6 issues](https://github.com/ivoaz/content-editable-bundle/issues)PHP

Since Sep 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ivoaz/content-editable-bundle)[ Packagist](https://packagist.org/packages/ivoaz/content-editable-bundle)[ RSS](/packages/ivoaz-content-editable-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

IvoazContentEditableBundle
==========================

[](#ivoazcontenteditablebundle)

The `IvoazContentEditableBundle` provides a twig extension for editable content with internationalization support in Symfony framework.

Example usage:

```
{{ 'Go ahead, edit away!' | contenteditable }}
```

This saves the content of the current locale in the database and lets a user with a `ROLE_ADMIN` permission edit the content with the browser's [content editable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_Editable)feature.

Here's another example with a larger content:

```
{% contenteditable "content_editable_description" %}
    HTMLElement.contentEditable
    The HTMLElement.contentEditable property is used to indicate whether or not the element is editable.
{% contenteditable %}
```

[![Build Status](https://camo.githubusercontent.com/b2287e8abdffcab5752c2d9198a154fa86a0a3abab24d4300c9c75cd2efadb93/68747470733a2f2f7472617669732d63692e6f72672f69766f617a2f636f6e74656e742d6564697461626c652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ivoaz/content-editable-bundle)[![Build Status](https://camo.githubusercontent.com/575303b5cc42936f8cc9294920992e15e127bf4134cae4954a9d37e0d46f6485/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69766f617a2f636f6e74656e742d6564697461626c652d62756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ivoaz/content-editable-bundle/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/e7db6d44bad636f0bad47aafb14410d0dcf7e6982ae746adfb64d6243f390b1a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69766f617a2f636f6e74656e742d6564697461626c652d62756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ivoaz/content-editable-bundle/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/56e4268d613687104fdbed69158f51d076f7345d8ac7675611ccb0e03c9319e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69766f617a2f636f6e74656e742d6564697461626c652d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ivoaz/content-editable-bundle/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/9ddeae3cc1addf16984269ee4c7ec33f8c9ad4840a2ae9f8d9a358ead8bbad85/68747470733a2f2f706f7365722e707567782e6f72672f69766f617a2f636f6e74656e742d6564697461626c652d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ivoaz/content-editable-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/786dea0caf0216d54bbd85a1677d8baffa0f8930c77b5aa2338d691184fa2f12/68747470733a2f2f706f7365722e707567782e6f72672f69766f617a2f636f6e74656e742d6564697461626c652d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/ivoaz/content-editable-bundle)

Requirements
------------

[](#requirements)

- PHP &gt;=5.5
- Symfony ~2.8|~3.0
- Doctrine ORM ~2.4
- Twig ~1.23

Installation
------------

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:

```
$ composer require ivoaz/content-editable-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
