2017 © Pedro Peláez
 

symfony-bundle aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

image

sukovanej/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  • Friday, November 10, 2017
  • by sukovanej
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Ace Editor Bundle

Build Status, (*1)

Bundle provides a Ace editor integration into Symfony Form component. It automatically register ace_editor form type., (*2)

Symfony

This bundle is supporting following Symfony versions:, (*3)

Composer

To use this bundle with Symfony ^3.0, require it in Composer:, (*4)

composer require "sukovanej/aceeditor-bundle" ^3.0

Register bundle in AppKernel.php, (*5)

// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Sukovanej\AceEditorBundle\SukovanejAceEditorBundle(),
        // ...
    );
}

Ace editor

Unles you do some configuration, this bundle expect Ace editor files to be in web/vendor/ace:, (*6)

cd your_project_root/web
mdkir vendor && cd vendor
wget https://github.com/ajaxorg/ace-builds/archive/v1.2.6.tar.gz
tar -xvf v1.2.6.tar.gz
mv ace-builds-1.2.6 ace
rm v1.2.6.tar.gz

Usage

use Sukovanej\AceEditorBundle\Form\Type\AceEditorType;

/* @var $builder \Symfony\Component\Form\FormBuilderInterface */
$builder->add('description', AceEditorType::class, array(
    'wrapper_attr' => array(), // aceeditor wrapper html attributes.
    'width' => '100%',
    'height' => 250,
    'font_size' => 12,
    'mode' => 'ace/mode/html', // every single default mode must have ace/mode/* prefix
    'theme' => 'ace/theme/monokai', // every single default theme must have ace/theme/* prefix
    'tab_size' => null,
    'read_only' => null,
    'use_soft_tabs' => null,
    'use_wrap_mode' => null,
    'show_print_margin' => null,
    'show_invisibles' => null,
    'highlight_active_line' => null,
    'options_enable_basic_autocompletion' => true,
    'options_enable_live_autocompletion' => true,
    'options_enable_snippets' => false
    'keyboard_handler' => null
));

Above code will create textarea element that will be replaced with ace editor instance. Textarea value is updated on every single change in ace editor., (*7)

Configuration

This section is optional, you dont need to configure anything and the form type will still work perfectly fine, (*8)

Default configuration:, (*9)

# app/config/config.yml

sukovanej_ace_editor:
    base_path: "vendor/ace" # notice! this is starting from "your_project_root/web"!
    autoinclude: true
    debug: false # sources not minified, based on kernel.debug but it can force it
    noconflict: true # uses ace.require instead of require

You can also include Ace editor directly from a location that follow the same directory layout than https://github.com/ajaxorg/ace-builds, all you need to do is setting base_path option:, (*10)

sukovanej_ace_editor:
    base_path: "http://rawgithub.com/ajaxorg/ace-builds/master"

The Versions

10/11 2017

dev-master

9999999-dev

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  Sources   Download

MIT

The Requires

 

The Development Requires

form javascript code bundle symfony editor ace

05/11 2017

dev-pull-request-keyboard_handler

dev-pull-request-keyboard_handler

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  Sources   Download

MIT

The Requires

 

The Development Requires

form javascript code bundle symfony editor ace

07/07 2017

3.0.x-dev

3.0.9999999.9999999-dev

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  Sources   Download

MIT

The Requires

 

The Development Requires

form javascript code bundle symfony editor ace

07/07 2017

3.0.0

3.0.0.0

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  Sources   Download

MIT

The Requires

 

The Development Requires

form javascript code bundle symfony editor ace

07/07 2017

2.8.x-dev

2.8.9999999.9999999-dev

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  Sources   Download

MIT

The Requires

 

The Development Requires

form javascript code bundle symfony editor ace

07/07 2017

2.8.0

2.8.0.0

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

  Sources   Download

MIT

The Requires

 

The Development Requires

form javascript code bundle symfony editor ace

05/01 2015

0.1.2

0.1.2.0

Bundle that integrate excellent JavaScript ace editor into Symfony2 Form.

  Sources   Download

MIT

The Requires

 

by Norbert Orzechowicz

form javascript bundle symfony editor ace

04/12 2013

0.1.1

0.1.1.0

Bundle that integrate excellent JavaScript ace editor into Symfony2 Form.

  Sources   Download

MIT

The Requires

 

by Norbert Orzechowicz

form javascript bundle symfony editor ace

25/06 2013

0.1.0

0.1.0.0

Bundle that integrate excellent JavaScript ace editor into Symfony2 Form.

  Sources   Download

MIT

The Requires

 

by Norbert Orzechowicz

form javascript bundle symfony editor ace