CModule IncludeModule fileman toolbarConfig array Bold Italic Underlin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?
CModule::IncludeModule("fileman");
$toolbarConfig = array(
'Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat',
'CreateLink', 'DeleteLink', 'Image', 'Video',
'BackColor', 'ForeColor',
'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull',
//'=|=',
'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent',
'StyleList', 'HeaderList',
'FontList', 'FontSizeList',
);
$videoSettings = array(
'maxWidth' => $arParams['VIDEO_MAX_WIDTH'],
'maxHeight' => $arParams['VIDEO_MAX_HEIGHT'],
'WMode' => $arParams['VIDEO_WMODE'],
'windowless' => $arParams['VIDEO_WINDOWLESS'] != 'N',
'bufferLength' => intVal($arParams['VIDEO_BUFFER']),
'skin' => $arParams['VIDEO_SKIN'],
'logo' => $arParams['VIDEO_LOGO']
);
$LHE = new CLightHTMLEditor;
$LHE->Show(array(
'id' => 'comments',
'content' => '',
'inputName' => 'comments',
'inputId' => 'INPUT_ID',
'width' => "200px",
'height' => "200px",
'bUseFileDialogs' => 'Y',
'jsObjName' => 'JS_OBJ_NAME',
'toolbarConfig' => $toolbarConfig,
'videoSettings' => $videoSettings,
'bResizable' => 'Y',
'bAutoResize' => 'N'
));
?>