The editor.ini template allows you to configure Ariadne's WYSIWYG and inline editors. You can use it to specify what html codes are allowed in page and summary content, where the default image folder is, whether or not to clean and tidy the html and what kind of text and image styles are available.
Settings
(array) |
[css][block] |
A list of html block elements which the user is allowed to insert. The format is array( [tag] => [name] ) |
(array) |
[css][inline] |
A list of html inline elements, as above. Only used in the toolbar editor widget, see mod_edit. |
(bool) |
[htmltidy][enabled] |
Whether or not to use html tidy to clean any html before saving. |
(bool) |
|
Whether or not to use the html cleaner to rewrite any html before saving. |
(array) |
[hyperlink] |
A list of link types the user is allowed to create. The format is array( [name] => [template] ) . The template is used to show a popup dialog. |
(array) |
[image][styles] |
A list of image style the user is allowed to select. Each style has a CSS classname and a server side template associated with it. The format is:array( [name] => |
(string) |
[photobook][location] |
The path to the default images folder. |
(string) |
[tags] |
One of either '_strict', '_strict_img', '_loose' or '_full'. Each indicating a set containing more allowed html tags. '_strict' allows only the most basic html layout tags. This setting only applies to $nlsdata->page content. |
(string) |
[tags_summary] |
Identical to [tags], but this setting is used for the $nlsdata->summary content. |
example:
<pinp>
$arEditorSettings = ar::getvar('arEditorSettings');
$arEditorSettings['css']['block'] = array(
'H1' => 'Heading 1',
'H2' => 'Heading 2',
'P' => 'Normal',
'UL' => 'Unordered List',
'OL' => 'Ordered List'
);
$arEditorSettings['image']['styles'] = array(
'thumbnail' => array(
'class' => 'thumb',
'template' => 'view.thumb.jpg'
),
'large' => array(
'class' => 'large',
'template' => 'view.large.jpg'
),
'original' => array(
'class' => '',
'template' => ''
)
);
$arEditorSettings['photobook']['location'] = ar('store')->currentSite() . 'images/';
ar::putvar('arEditorSettings', $arEditorSettings);
</pinp>