Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 964b41d

Browse files
committed
Merge pull request #739 from symfony-cmf/ivory_ckeditor
Document IvoryCKEditorBundle integration
2 parents c00addf + 2032b59 commit 964b41d

File tree

5 files changed

+82
-5
lines changed

5 files changed

+82
-5
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
``ivory_ckeditor``
2+
~~~~~~~~~~~~~~~~~~
3+
4+
.. versionadded:: 1.3
5+
IvoryCKEditorBundle integration was introduced in version 1.3.
6+
7+
This configures integration of the IvoryCKEditorBundle_, so an admin can edit
8+
content using CKeditor.
9+
10+
.. configuration-block::
11+
12+
.. code-block:: yaml
13+
14+
cmf_content:
15+
ivory_ckeditor:
16+
enabled: auto
17+
config_name: cmf_content
18+
19+
.. code-block:: xml
20+
21+
<?xml version="1.0" encoding="UTF-8" ?>
22+
<container xmlns="http://symfony.com/schema/dic/services"
23+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance"
24+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
25+
http://cmf.symfony.com/schema/dic/content http://cmf.symfony.com/schema/dic/content/content-1.0.xsd"
26+
>
27+
28+
<config xmlns="http://cmf.symfony.com/schema/dic/content">
29+
<ivory-ckeditor enabled="auto" config-name="cmf_content" />
30+
</config>
31+
32+
</container>
33+
34+
.. code-block:: php
35+
36+
$container->loadFromExtension('cmf_content', array(
37+
'ivory_ckeditor' => array(
38+
'enabled' => true,
39+
'config_name' => 'cmf_content',
40+
),
41+
));
42+
43+
``enabled``
44+
...........
45+
46+
**type**: ``enum`` **valid values**: ``true|false|auto`` **default**: ``auto``
47+
48+
Enables/disables the CKeditor integration. ``auto`` will enable the integration
49+
only when the IvoryCKEditorBundle is registered. ``false`` will always disable
50+
the integration.
51+
52+
``config_name``
53+
...............
54+
55+
**type**: ``string`` **default**: ``cmf_content``
56+
57+
The name of the IvoryCKEditorBundle config set to use for the editor.
58+
59+
.. _IvoryCKEditorBundle: https://github.com/egeloen/IvoryCKEditorBundle

bundles/content/configuration.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,33 +71,33 @@ is the following configuration:
7171
));
7272
7373
``enabled``
74-
***********
74+
...........
7575

7676
.. include:: ../_partials/persistence_phpcr_enabled.rst.inc
7777

7878
``admin_class``
79-
***************
79+
...............
8080

8181
**type**: ``string`` **default**: ``Symfony\Cmf\Bundle\ContentBundle\Admin\StaticContentAdmin``
8282

8383
The admin class to use when :ref:`Sonata Admin is activated <quick-tour-third-party-sonata>`.
8484

8585
``document_class``
86-
******************
86+
..................
8787

8888
**type**: ``string`` **default**: ``Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent``
8989

9090
The Content class to use.
9191

9292
``content_basepath``
93-
********************
93+
....................
9494

9595
**type**: ``string`` **default**: ``/cms/content``
9696

9797
The basepath for Content documents in the PHPCR tree.
9898

9999
``use_sonata_admin``
100-
********************
100+
....................
101101

102102
**type**: ``enum`` **valid values**: ``true|false|auto`` **default**: ``auto``
103103

@@ -107,3 +107,5 @@ SonataPhpcrAdminBundle is present.
107107

108108
If the :doc:`CoreBundle <../core/introduction>` is registered, this will
109109
default to the value of ``cmf_core.persistence.phpcr.use_sonata_admin``.
110+
111+
.. include:: ../_partials/ivory_ckeditor.rst.inc

bundles/content/introduction.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,18 @@ removing static content from the admin panel. To enable the admin, use the
226226
also provides :ref:`several useful extensions <bundles-core-persistence>` for
227227
SonataAdminBundle.
228228

229+
.. tip::
230+
231+
Install the IvoryCKEditorBundle_ to enable a CKEditor to edit the content
232+
body:
233+
234+
.. code-block:: bash
235+
236+
$ composer require egeloen/ckeditor-bundle
237+
238+
.. versionadded:: 1.3
239+
IvoryCKEditorBundle integration was introduced in CmfContentBundle 1.3.
240+
229241
Read On
230242
-------
231243

@@ -234,3 +246,4 @@ Read On
234246

235247
.. _`with composer`: http://getcomposer.org
236248
.. _`symfony-cmf/content-bundle`: https://packagist.org/packages/symfony-cmf/content-bundle
249+
.. _IvoryCKEditorBundle: https://github.com/egeloen/IvoryCKEditorBundle

bundles/simple_cms/configuration.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,5 @@ Configure integration with CmfMenuBundle.
192192
.. versionadded:: 1.1
193193
Since SimpleCmsBundle 1.1, this configuration is done directly on the
194194
:ref:`RoutingBundle <reference-config-routing-locales>`.
195+
196+
.. include:: ../_partials/ivory_ckeditor.rst.inc

spelling_word_list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ cacheable
2121
cdn
2222
checkbox
2323
ckfinder
24+
CKeditor
2425
cmf
2526
coffeescript
2627
config

0 commit comments

Comments
 (0)