Skip to content

A Bundle nesting miscellanous javascript Wysiwyg Editors and enabling easy configuration. Project supported by Vu Par... (http://www.vupar.fr)

Notifications You must be signed in to change notification settings

ihqs/WysiwygBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WysiwygBundle

This Symfony2 Bundle is supported by "Vu Par Digital..." (http://www.vupar.fr), french web and communication agency in Nantes, France.

The aim of this bundle is to nest miscellanous wysiwyg editors to allow you to use them with minimum configuration

TODO

This bundle is in DEVEL mode

  • enable custom editors, custom sets, custom themes
  • add other editors, sets and themes

Installation

git submodule add git://github.com/ihqs/WysiwygBundle.git src/IHQS/WysiwygBundle

Modify your autoloader if you didn't installer another IHQS Bundle yet. Register namespace :

// app/autoload.php
$loader->registerNamespaces(array(   
 'IHQS' => __DIR__,
     // ...
));

Instantiate Bundle in your app/AppKernel.hpp file

public function registerBundles()
{
    $bundles = array(
        // ...
        new IHQS\WysiwygBundle\IHQSWysiwygBundle(),
    );
}

Configuration

Configure your application

// app/config.yml
ihqs_wysiwyg:
selector: wysiwyg_editor	// default class for the textarea you want to improve
editor:
	library: xxxx		// the editor you want. Default : markitup. Also available : ckeditor
	set: xxxx		// the settings you want to apply to the editor, meaning its configuration
	theme: xxxx		// the theme you want to apply to the editor

Add script to your templates at the bottom of your page (for faster page display).

// anyfile.html.twig
{% render "IHQSWysiwygBundle:Script:init" %}

You got to add this asset to your webpage.

// anyfile.html.twig
<script type="text/javascript" src="{{ asset('bundles/ihqswysiwyg/js/wysiwyg.js') }}"></script>

You'll need AssetBundle and you'll also need to launch the command assets:install

Available editors

"°" means it's default configuration

  • markitup [°]

    • themes : default [°]
    • sets : markitup [°], default
  • ckeditor (being added)

About

A Bundle nesting miscellanous javascript Wysiwyg Editors and enabling easy configuration. Project supported by Vu Par... (http://www.vupar.fr)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published