本文整理汇总了PHP中CLightHTMLEditor类的典型用法代码示例。如果您正苦于以下问题:PHP CLightHTMLEditor类的具体用法?PHP CLightHTMLEditor怎么用?PHP CLightHTMLEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CLightHTMLEditor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: GetPublicEditHTML
public static function GetPublicEditHTML($arProperty, $value, $strHTMLControlName)
{
if (!CModule::IncludeModule("fileman")) {
return GetMessage("IBLOCK_PROP_HTML_NOFILEMAN_ERROR");
}
if (!is_array($value["VALUE"])) {
$value = CIBlockPropertyHTML::ConvertFromDB($arProperty, $value);
}
$settings = CIBlockPropertyHTML::PrepareSettings($arProperty);
$id = preg_replace("/[^a-z0-9]/i", '', $strHTMLControlName['VALUE']);
ob_start();
echo '<input type="hidden" name="' . $strHTMLControlName["VALUE"] . '[TYPE]" value="html">';
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => $id, 'width' => '100%', 'height' => $settings['height'] . 'px', 'inputName' => $strHTMLControlName["VALUE"] . '[TEXT]', 'content' => $value["VALUE"]['TEXT'], 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bRecreate' => true, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'Video', 'BackColor', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'StyleList', 'HeaderList', 'FontList', 'FontSizeList')));
$s = ob_get_contents();
ob_end_clean();
return $s;
}
开发者ID:rasuldev,项目名称:torino,代码行数:18,代码来源:prop_html.php
示例2: DialogEditEvent
//.........这里部分代码省略.........
</span>
</span>
</div>
<!-- Color -->
<div class="bxec-popup-row">
<span class="bxec-field-label-edev" style="vertical-align:top;"><label for="<?php
echo $id;
?>
-event-color-inp"><?php
echo GetMessage('EC_T_COLOR');
?>
:</label></span>
<span class="bxec-field-val-2" style="width: 300px;">
<?php
CCalendarSceleton::DisplayColorSelector($id, 'event', $Params['colors']);
?>
</span>
</div>
</div>
<?php
/* ####### END TAB 0 ####### */
?>
<?php
/* ####### TAB 1 : DESCRIPTION - LHE ####### */
?>
<div id="<?php
echo $id;
?>
ed-tab-1-cont" class="bxec-d-cont-div bxec-lhe">
<?php
CModule::IncludeModule("fileman");
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => 'LHEEvDesc', 'width' => '500', 'height' => '285', 'inputId' => $id . '_edit_ed_desc', 'content' => '', 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'BackColor', 'ForeColor', 'InsertOrderedList', 'InsertUnorderedList', 'FontSizeList', 'Source'), 'BBCode' => true, 'jsObjName' => 'pLHEEvDesc', 'bInitByJS' => true, 'bSaveOnBlur' => false));
?>
</div>
<?php
/* ####### END TAB 1 ####### */
?>
<?php
/* ####### TAB 2 : GUESTS ####### */
if ($Params['bSocNet']) {
?>
<div id="<?php
echo $id;
?>
ed-tab-2-cont" class="bxec-d-cont-div">
<div class="bxc-att-cont-cont">
<a id="<?php
echo $id;
?>
_planner_link" href="javascript:void(0);" title="<?php
echo GetMessage('EC_PLANNER_TITLE');
?>
" class="bxex-planner-link"><i></i><?php
echo GetMessage('EC_PLANNER2');
?>
</a>
<?php
$isExtranetGroup = false;
if ($Params["bSocNet"] && $Params["type"] == "group" && intval($Params["ownerId"]) > 0 && CModule::IncludeModule("extranet")) {
$isExtranetGroup = CExtranet::IsExtranetSocNetGroup($Params["ownerId"]);
}
$APPLICATION->IncludeComponent("bitrix:intranet.user.selector.new", "", array("MULTIPLE" => "Y", "NAME" => "BXCalUserSelect", "VALUE" => array(), "POPUP" => "Y", "ON_CHANGE" => "bxcUserSelectorOnchange", "NAME_TEMPLATE" => CCalendar::GetUserNameTemplate(), "SITE_ID" => SITE_ID, "SHOW_EXTRANET_USERS" => $isExtranetGroup ? "FROM_EXACT_GROUP" : "NONE", "EX_GROUP" => $isExtranetGroup ? $Params["ownerId"] : ""), null, array("HIDE_ICONS" => "Y"));
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:67,代码来源:calendar_sceleton.php
示例3: GetMessage
?>
>
</td>
</tr>
<tr id="tr_FILTER_HINT" class="adm-detail-valign-top" style="display: <?php
echo $arProperty['SECTION_PROPERTY'] != 'N' ? 'table-row' : 'none';
?>
">
<td width="40%"><?php
echo GetMessage("BT_ADM_IEP_PROP_FILTER_HINT");
?>
</td>
<td>
<?php
CModule::IncludeModule("fileman");
$LHE = new CLightHTMLEditor();
$LHE->Show(array('inputName' => 'PROPERTY_FILTER_HINT', 'content' => $arProperty['FILTER_HINT'], 'height' => 200, 'width' => '100%', 'bResizable' => false, 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => true, 'bAutoResize' => true, 'bSaveOnBlur' => true, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'CreateLink', 'DeleteLink', 'Source', 'BackColor', 'ForeColor')));
?>
</td>
</tr>
<?php
} elseif (isset($arPropertyFields["SET"]["SMART_FILTER"])) {
?>
<input type="hidden" id="PROPERTY_SMART_FILTER_Y" name="PROPERTY_SMART_FILTER" value="<?php
echo htmlspecialcharsbx($arPropertyFields["SET"]["FILTRABLE"]);
?>
">
<?php
}
?>
<?php
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_edit_property.php
示例4: array
/*
related to http://jabber.bx/view.php?id=19527
// TODO: needs good synchronization first
$info = CTimeMan::GetRuntimeInfo(true);
$arTasksIds = array();
if (is_array($info) && isset($info['TASKS']))
{
foreach ($info['TASKS'] as $arTask)
$arTasksIds[] = (int) $arTask['ID'];
}
*/
$APPLICATION->IncludeComponent("bitrix:tasks.task.selector", ".default", array("MULTIPLE" => "N", "NAME" => "TIMEMAN_TASKS", "VALUE" => '', "POPUP" => "N", "ON_SELECT" => "TIMEMAN_ADD_TASK_" . $_REQUEST['suffix'], "PATH_TO_TASKS_TASK" => str_replace('#USER_ID#', $USER->GetID(), COption::GetOptionString('intranet', 'path_task_user_entry', '/company/personal/user/#USER_ID#/tasks/task/view/#TASK_ID#/', $_REQUEST['site_id'])), "SITE_ID" => $_REQUEST['site_id'], "FILTER" => array('DOER' => $USER->GetID(), 'STATUS' => array(-2, -1, CTasks::STATE_NEW, CTasks::STATE_PENDING, CTasks::STATE_IN_PROGRESS, CTasks::STATE_DEFERRED)), 'HIDE_ADD_REMOVE_CONTROLS' => 'Y'), null, array("HIDE_ICONS" => "Y"));
} elseif ($action == "editor") {
$APPLICATION->ShowAjaxHead();
CModule::IncludeModule("fileman");
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => strlen($_REQUEST["obname"]) > 0 ? $_REQUEST["obname"] : "oReportLHE", 'content' => "", 'inputName' => "ITEM_DESCRIPTION", 'inputId' => "", 'width' => "100%", 'height' => "200px", 'bUseFileDialogs' => false, 'jsObjName' => strlen($_REQUEST["obname"]) > 0 ? $_REQUEST["obname"] : "oReportLHE", 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Image', 'Table', 'InsertOrderedList', 'InsertUnorderedList', 'Source'), 'bResizable' => false, 'bAutoResize' => false));
} elseif ($action == "upload_attachment") {
$report = null;
$report_id = intval($_POST["report_id"]);
if ($report_id > 0) {
$user_id = intval($_REQUEST['user_id']);
if ($user_id <= 0) {
$user_id = $USER->GetID();
}
$bCanReadUser = $user_id == $USER->GetID();
if (!$bCanReadUser) {
$arAccessUsers = CTimeMan::GetAccess();
$bCanReadAll = in_array('*', $arAccessUsers['READ']);
$bCanReadUser = $bCanReadAll || in_array($user_id, $arAccessUsers["READ"]);
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:timeman.php
示例5: AddEventHandler
<?php
}
AddEventHandler("fileman", "OnIncludeLightEditorScript", "CustomizeLightEditorForBlog");
$arSmiles = array();
if (!empty($arResult["Smiles"])) {
foreach ($arResult["Smiles"] as $arSmile) {
$arSmiles[] = array('name' => $arSmile["~LANG_NAME"], 'path' => "/bitrix/images/blog/smile/" . $arSmile["IMAGE"], 'code' => str_replace("\\\\", "\\", $arSmile["TYPE"]));
}
}
?>
<div id="edit-post-text">
<?php
$bbCode = true;
// Detect necessity of first convertion content from BB-code to HTML in editor.
$bConvertContentFromBBCodes = !$bbCode && $_REQUEST["load_editor"] == "Y" && !isset($_REQUEST['preview']) && !isset($_REQUEST['save']) && !isset($_REQUEST['apply']) && !isset($_REQUEST['draft']);
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => 'LHEBlogId', 'height' => $arParams['EDITOR_DEFAULT_HEIGHT'], 'inputId' => 'POST_MESSAGE_HTML', 'inputName' => 'POST_MESSAGE', 'content' => $arResult["PostToShow"]["~DETAIL_TEXT"], 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Quote', 'Code', 'InsertCut', 'CreateLink', 'DeleteLink', 'Image', 'BlogImage', $arResult["allowVideo"] == "Y" ? 'BlogInputVideo' : '', 'Table', 'Justify', 'InsertOrderedList', 'InsertUnorderedList', 'SmileList', 'Source'), 'jsObjName' => 'oBlogLHE', 'arSmiles' => $arSmiles, 'smileCountInToolbar' => $arParams['SMILES_COUNT'], 'bSaveOnBlur' => false, 'BBCode' => $bbCode, 'bConvertContentFromBBCodes' => $bConvertContentFromBBCodes, 'bQuoteFromSelection' => true, 'bResizable' => $arParams['EDITOR_RESIZABLE'], 'ctrlEnterHandler' => 'blogCtrlEnterHandler', 'bSetDefaultCodeView' => $arParams['EDITOR_CODE_DEFAULT'], 'bBBParseImageSize' => true));
?>
</div><?php
}
if (COption::GetOptionString("blog", "use_autosave", "Y") == "Y") {
?>
<script>
var bShow = false;
function blogCheckLHE()
{
if(window.oBlogLHE)
{
if(!bShow)
bShow = true;
BlogPostAutoSaveIcon();
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:editor.php
示例6: htmlspecialcharsBack
echo $arParams["LHE"]['ctrlEnterHandler'];
?>
']();
<?else:?>
BX.submit(BX('<?php
echo $arParams["FORM_ID"];
?>
'));
<?endif;?>
}
</script>
<?
}
?>
<div id="edit-post-text"><?
$LHE = new CLightHTMLEditor;
$res = array_merge(
array(
'id' => $arParams["LHE"]["id"],
// 'width' => '800', // default 100%
'height' => $arParams["TEXT"]["HEIGHT"],
'inputId' => $arParams["TEXT"]["ID"],
'inputName' => $arParams["TEXT"]["NAME"],
'content' => htmlspecialcharsBack($arParams["TEXT"]["VALUE"]),
'bUseFileDialogs' => false,
'bUseMedialib' => false,
'toolbarConfig' => $arParams["PARSER"],
'jsObjName' => $arParams["LHE"]["jsObjName"],
'arSmiles' => $arParams["SMILES"]["VALUE"],
'smileCountInToolbar' => $arParams['SMILES_COUNT'],
'bSaveOnBlur' => true,
开发者ID:nProfessor,项目名称:Mytb,代码行数:31,代码来源:lhe.php
示例7: GetMessage
<div class="forum-reply-header"><?php
echo GetMessage("F_HEAD_MESS");
?>
<span class="forum-required-field">*</span></div>
<div class="forum-reply-fields">
<div class="forum-reply-field forum-reply-field-text">
<?php
$arSmiles = array();
foreach ($arResult["SMILES"] as $arSmile) {
$arSmiles[] = array('name' => $arSmile["NAME"], 'path' => $arParams["PATH_TO_SMILE"] . $arSmile["IMAGE"], 'code' => array_shift(explode(" ", str_replace("\\\\", "\\", $arSmile["TYPING"]))));
}
CModule::IncludeModule("fileman");
AddEventHandler("fileman", "OnIncludeLightEditorScript", "CustomizeLHEForForum");
$LHE = new CLightHTMLEditor();
$arEditorParams = array('id' => "POST_MESSAGE", 'content' => isset($arResult['POST_VALUES']["~POST_MESSAGE"]) ? $arResult['POST_VALUES']["~POST_MESSAGE"] : $arResult['POST_VALUES']["POST_MESSAGE"], 'inputName' => "POST_MESSAGE", 'inputId' => "", 'width' => "100%", 'height' => "200px", 'minHeight' => "200px", 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'BBCode' => true, 'bBBParseImageSize' => true, 'jsObjName' => "oLHE", 'toolbarConfig' => array(), 'smileCountInToolbar' => 3, 'arSmiles' => $arSmiles, 'bQuoteFromSelection' => true, 'ctrlEnterHandler' => 'postformCtrlEnterHandler' . $arParams["form_index"], 'bSetDefaultCodeView' => $arParams['EDITOR_CODE_DEFAULT'] === 'Y', 'bResizable' => true, 'bAutoResize' => true);
$arEditorParams['toolbarConfig'] = forumTextParser::GetEditorToolbar(array('mode' => 'full'));
$LHE->Show($arEditorParams);
?>
</div>
<div class="forum-reply-field forum-reply-field-settings">
<div class="forum-reply-field-setting">
<input type="checkbox" name="USE_SMILES" id="USE_SMILES" <?php
?>
value="Y" <?php
echo $arResult["POST_VALUES"]["USE_SMILES"] == "Y" ? "checked=\"checked\"" : "";
?>
<?php
?>
开发者ID:dayAlone,项目名称:MyQube,代码行数:30,代码来源:template.php
示例8: __IncludeLang
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if ($arResult['INCLUDE_LANG']) {
__IncludeLang($_SERVER['DOCUMENT_ROOT'] . $this->GetFolder() . '/lang/' . LANGUAGE_ID . '/template.php');
}
CModule::IncludeModule("fileman");
$LHE = new CLightHTMLEditor();
?>
<div class="meeting-detail-title-wrap">
<span class="meeting-ques-inp-label"><?php
echo GetMessage('MI_EDIT_TITLE');
?>
</span>
<input type="text" name="ITEM_TITLE" value="<?php
echo htmlspecialcharsbx($arResult['ITEM']['TITLE']);
?>
" class="meeting-ques-edit-inp" />
</div>
<div id="meeting-detail-description" class="meeting-detail-description">
<span class="meeting-ques-form-label"><?php
echo GetMessage('MI_EDIT_DESCRIPTION');
?>
</span>
<div class="meeting-detail-description-form">
<?php
$LHE->Show(array('id' => "", 'content' => $arResult['ITEM']['DESCRIPTION'], 'inputName' => "ITEM_DESCRIPTION", 'inputId' => "", 'width' => "100%", 'height' => "200px", 'bUseFileDialogs' => false, 'jsObjName' => "oMeetingLHE", 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Quote', 'Code', 'Image', 'Table', 'InsertOrderedList', 'InsertUnorderedList', 'SmileList', 'Source'), 'bResizable' => true, 'bAutoResize' => true));
?>
</div>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:edit.php
示例9: ShowError
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("fileman")) {
return ShowError(GetMessage("EC_FILEMAN_MODULE_NOT_INSTALLED"));
}
$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');
if (is_array($arParams['TOOLBAR_CONFIG'])) {
$toolbarConfig = $arParams['TOOLBAR_CONFIG'];
}
if ($arParams['VIDEO_ALLOW_VIDEO'] != 'N') {
$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']);
} else {
$ind = array_search('Video', $toolbarConfig);
if ($ind !== false) {
unset($toolbarConfig[$ind]);
$toolbarConfig = array_values($toolbarConfig);
}
$videoSettings = false;
}
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => $arParams['ID'], 'content' => $arParams['~CONTENT'], 'inputName' => $arParams['INPUT_NAME'], 'inputId' => $arParams['INPUT_ID'], 'width' => $arParams['WIDTH'], 'height' => $arParams['HEIGHT'], 'bUseFileDialogs' => $arParams['USE_FILE_DIALOGS'] == 'Y', 'jsObjName' => $arParams['JS_OBJ_NAME'], 'toolbarConfig' => $toolbarConfig, 'videoSettings' => $videoSettings, 'bResizable' => $arParams['RESIZABLE'] == 'Y', 'bAutoResize' => $arParams['AUTO_RESIZE'] != 'N'));
开发者ID:Satariall,项目名称:izurit,代码行数:24,代码来源:component.php
示例10: array
case 'SUBJECT':
case 'EMAIL_FROM':
$f['type'] = 'text';
$f['params'] = array('size' => 50);
break;
case 'SCOPE':
case 'ENTITY_TYPE_ID':
$f['type'] = 'list';
$f['items'] = isset($data['ALL_VALUES']) ? $data['ALL_VALUES'] : array();
break;
case 'BODY':
$f['type'] = 'custom';
$f['colspan'] = true;
CModule::IncludeModule('fileman');
ob_start();
$editor = new CLightHTMLEditor();
$editor->Show(array('id' => 'MailTemplateBodyEditor', 'height' => '192', 'BBCode' => true, 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bResizable' => false, 'jsObjName' => 'oLheMailTemplateBody', 'bInitByJS' => false, 'bSaveOnBlur' => false, 'content' => $f['value'], 'inputName' => $ID, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Quote', 'Code', 'CreateLink', 'DeleteLink', 'Image', 'Table', 'Justify', 'InsertOrderedList', 'InsertUnorderedList', 'Indent', 'Outdent', 'Source')));
$f['value'] = ob_get_contents();
ob_end_clean();
break;
default:
$f['type'] = 'text';
}
$mainTabFields[] =& $f;
if ($ID === 'ENTITY_TYPE_ID') {
//Add field selector control
$selectorContainerID = $arResult['FORM_ID'] . '_ENTITY_FIELD_SELECTOR';
$selector = array('id' => 'ENTITY_FIELD_SELECTOR', 'name' => GetMessage('CRM_MAIL_TEMPLATE_ENTITY_FIELD_SELECTOR'), 'type' => 'custom', 'value' => '<span id="' . htmlspecialcharsbx($selectorContainerID) . '"></span>');
$mainTabFields[] =& $selector;
unset($selector);
?>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php
示例11: elseif
?>
</div>
<span class="crm-offer-edit-btn-wrap"><?php
if (!$required && !$persistent) {
?>
<span class="crm-offer-item-del"></span><?php
}
?>
<span class="crm-offer-item-edit"></span>
</span>
</td><!-- "crm-offer-info-right" --><?php
} elseif ($field['type'] === 'lhe') {
$params = isset($field['componentParams']) ? $field['componentParams'] : array();
$params['id'] = strtolower("{$arParams['FORM_ID']}_{$field['id']}");
CModule::IncludeModule('fileman');
$lhe = new CLightHTMLEditor();
?>
<td class="crm-offer-info-right" colspan="4">
<div class="crm-offer-editor-title">
<div class="crm-offer-editor-title-contents-wapper">
<?php
if ($required) {
?>
<span class="required">*</span><?php
}
?>
<span class="crm-offer-editor-title-contents"><?php
echo htmlspecialcharsEx($field['name']);
?>
</span>
</div>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php
示例12: RenderHtmlEditor
public static function RenderHtmlEditor(&$arParams)
{
if (!is_array($arParams)) {
return;
}
$fieldID = isset($arParams['FIELD_ID']) ? $arParams['FIELD_ID'] : '';
$value = isset($arParams['VALUE']) ? $arParams['VALUE'] : '';
$editorID = isset($arParams['EDITOR_ID']) ? $arParams['EDITOR_ID'] : '';
if ($editorID === '') {
$editorID = uniqid('LHE_');
}
$editorJsName = isset($arParams['EDITOR_JS_NAME']) ? $arParams['EDITOR_JS_NAME'] : '';
if ($editorJsName === '') {
$editorJsName = $editorID;
}
$toolbarConfig = isset($arParams['TOOLBAR_CONFIG']) ? $arParams['TOOLBAR_CONFIG'] : null;
if (!is_array($toolbarConfig)) {
$toolbarConfig = array('Bold', 'Italic', 'Underline', 'Strike', 'BackColor', 'ForeColor', 'CreateLink', 'DeleteLink', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent');
}
if (!self::$IS_FILEMAN_INCLUDED) {
CModule::IncludeModule('fileman');
self::$IS_FILEMAN_INCLUDED = true;
}
ob_start();
$editor = new CLightHTMLEditor();
$editor->Show(array('id' => $editorID, 'height' => '150', 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bResizable' => false, 'jsObjName' => $editorJsName, 'bInitByJS' => false, 'bSaveOnBlur' => true, 'toolbarConfig' => $toolbarConfig));
$lheHtml = ob_get_contents();
ob_end_clean();
$wrapperID = isset($arParams['WRAPPER_ID']) ? $arParams['WRAPPER_ID'] : '';
if ($wrapperID === '') {
$wrapperID = $editorID . '_WRAPPER';
}
echo str_replace(array('#TEXT#', '#VALUE#', '#NAME#', '#SETTINGS#', '#WRAPPER_ID#', '#HTML#'), array($value, htmlspecialcharsbx($value), $fieldID, htmlspecialcharsbx('{ "id":"' . CUtil::JSEscape($editorID) . '", "wrapperId":"' . CUtil::JSEscape($wrapperID) . '", "jsName":"' . CUtil::JSEscape($editorJsName) . '" }'), $wrapperID, $lheHtml), self::$TEMPLATES['LHE']);
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:34,代码来源:crm_component_helper.php
示例13: __ShowTextFieldTmp
function __ShowTextFieldTmp($name, $multiple, $key, $value, $isInSecurity)
{
if (!$isInSecurity) {
echo '<textarea name="' . $name . ($multiple ? '[' . $key . ']' : '') . '" style="width:98%" rows="10">' . $value . '</textarea>';
} else {
CModule::IncludeModule("fileman");
if ($name == "DETAIL_TEXT") {
?>
<script>
window.LHE_TC = {
butTitle: '<?php
echo GetMessage("INTET_VE_INS_SUBTASK");
?>
',
dialogTitle: '<?php
echo GetMessage("INTET_VE_INS_SUBTASK1");
?>
',
subTaskLabel: '<?php
echo GetMessage("INTET_VE_INS_SUBTASK2");
?>
'
};
window.subTaskStyles = "\n" +
"ul.bx-subtasklist {list-style-image: url(/bitrix/images/fileman/light_htmledit/check_off.gif);}" +
"ul.bx-subtasklist li{padding-left: 5px;}" +
"ul.bx-subtasklist li.checked{ list-style-image: url(/bitrix/images/fileman/light_htmledit/check_on.gif);}" +
"\n";
</script>
<?php
AddEventHandler("fileman", "OnBeforeLightEditorScriptsGet", "lhe_add_js");
function lhe_add_js($LheId)
{
if ($LheId == 'LHETaskId') {
return array("JS" => array('/bitrix/js/fileman/light_editor/task_checkbox.js'));
}
}
$ar = array('id' => 'LHETaskId', 'height' => '200px', 'inputName' => $name . ($multiple ? '[' . $key . ']' : ''), 'inputId' => $name . '_id', 'content' => $value, 'bUseFileDialogs' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'Video', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'StyleList', 'HeaderList', 'FontList', 'FontSizeList', 'TaskCheckbox'), 'jsObjName' => 'oLHE', 'bResizable' => true);
} else {
$ar = array('height' => '200px', 'inputName' => $name . ($multiple ? '[' . $key . ']' : ''), 'inputId' => $name . '_id', 'content' => $value, 'bUseFileDialogs' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'Video', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'StyleList', 'HeaderList', 'FontList', 'FontSizeList'), 'bResizable' => true);
}
$LHE = new CLightHTMLEditor();
$LHE->Show($ar);
}
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:46,代码来源:template.php
示例14: array
$arSmiles = array();
if (!empty($arResult["Smiles"])) {
foreach ($arResult["Smiles"] as $arSmile) {
$arSmiles[] = array('name' => $arSmile["~LANG_NAME"], 'path' => "/bitrix/images/blog/smile/" . $arSmile["IMAGE"], 'code' => str_replace("\\\\", "\\", $arSmile["TYPE"]));
}
}
?>
<div id="edit-post-text">
<?php
$bbCode = true;
if ($arResult["allow_html"] == "Y" && ($arResult["PostToShow"]["DETAIL_TEXT_TYPE"] == "html" && $_REQUEST["load_editor"] != "N" || $_REQUEST["load_editor"] == "Y")) {
$bbCode = false;
}
// Detect necessity of first convertion content from BB-code to HTML in editor.
$bConvertContentFromBBCodes = !$bbCode && $_REQUEST["load_editor"] == "Y" && !isset($_REQUEST['preview']) && !isset($_REQUEST['save']) && !isset($_REQUEST['apply']) && !isset($_REQUEST['draft']);
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => 'LHEBlogId', 'width' => '100%', 'height' => '120px', 'inputId' => 'POST_MESSAGE_HTML', 'inputName' => 'POST_MESSAGE', 'content' => $arResult["PostToShow"]["~DETAIL_TEXT"], 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'toolbarConfig' => array('BlogImage', 'CreateLink', $arResult["allowVideo"] == "Y" ? 'BlogInputVideo' : ''), 'jsObjName' => 'oBlogLHE', 'arSmiles' => $arSmiles, 'smileCountInToolbar' => 1, 'bSaveOnBlur' => false, 'BBCode' => $bbCode, 'bConvertContentFromBBCodes' => $bConvertContentFromBBCodes, 'bQuoteFromSelection' => true, 'bResizable' => true, 'bAutoResize' => true, 'autoResizeOffset' => 40, 'autoResizeMaxHeight' => 300, 'controlButtonsHeight' => 0, 'autoResizeSaveSize' => false, 'ctrlEnterHandler' => 'blogCtrlEnterHandler', 'bSetDefaultCodeView' => false, 'bBBParseImageSize' => true));
?>
</div><?php
}
?>
<script>
var bShow = false;
function blogCheckLength()
{
if(window.oBlogLHE)
{
if(!bShow)
{
var el = BX.findChild(BX("bxlhe_frame_LHEBlogId"), {className: "lhe-stat-toolbar-cont"}, true);
elTr = BX.findParent(BX.findParent(el));
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:lhe.php
示例15: RenderInstantEditorField
public static function RenderInstantEditorField($arParams)
{
$fieldID = isset($arParams['FIELD_ID']) ? $arParams['FIELD_ID'] : '';
$type = isset($arParams['TYPE']) ? $arParams['TYPE'] : '';
if ($type === 'TEXT') {
$value = isset($arParams['VALUE']) ? $arParams['VALUE'] : '';
$suffixHtml = isset($arParams['SUFFIX_HTML']) ? $arParams['SUFFIX_HTML'] : '';
if ($suffixHtml === '') {
$suffix = isset($arParams['SUFFIX']) ? $arParams['SUFFIX'] : '';
if ($suffix !== '') {
$suffixHtml = htmlspecialcharsbx($suffix);
}
}
$inputWidth = isset($arParams['INPUT_WIDTH']) ? intval($arParams['INPUT_WIDTH']) : 0;
echo '<span class="crm-instant-editor-fld crm-instant-editor-fld-input">', '<span class="crm-instant-editor-fld-text">', htmlspecialcharsbx($value), '</span>';
echo '<input class="crm-instant-editor-data-input" type="text" value="', htmlspecialcharsbx($value), '" style="display:none;', $inputWidth > 0 ? "width:{$inputWidth}px;" : '', '" />', '<input class="crm-instant-editor-data-name" type="hidden" value="', htmlspecialcharsbx($fieldID), '" />';
if ($suffixHtml !== '') {
echo '<span class="crm-instant-editor-fld-suffix">', $suffixHtml, '</span>';
}
echo '</span><span class="crm-instant-editor-fld-btn crm-instant-editor-fld-btn-input"></span>';
} elseif ($type === 'LHE') {
$editorID = isset($arParams['EDITOR_ID']) ? $arParams['EDITOR_ID'] : '';
if ($editorID === '') {
$editorID = uniqid('LHE_');
}
$editorJsName = isset($arParams['EDITOR_JS_NAME']) ? $arParams['EDITOR_JS_NAME'] : '';
if ($editorJsName === '') {
$editorJsName = $editorID;
}
$value = isset($arParams['VALUE']) ? $arParams['VALUE'] : '';
/*if($value === '<br />')
{
$value = '';
}*/
echo '<span class="crm-instant-editor-fld-text">';
echo $value;
echo '</span>';
echo '<div class="crm-instant-editor-fld-btn crm-instant-editor-fld-btn-lhe"></div>';
echo '<input class="crm-instant-editor-data-name" type="hidden" value="', htmlspecialcharsbx($fieldID), '" />';
echo '<input class="crm-instant-editor-data-value" type="hidden" value="', htmlspecialcharsbx($value), '" />';
$wrapperID = isset($arParams['WRAPPER_ID']) ? $arParams['WRAPPER_ID'] : '';
if ($wrapperID === '') {
$wrapperID = $editorID . '_WRAPPER';
}
$toolbarConfig = is_array($arParams['TOOLBAR_CONFIG']) ? $arParams['TOOLBAR_CONFIG'] : '';
if ($toolbarConfig === '') {
$toolbarConfig = array('Bold', 'Italic', 'Underline', 'Strike', 'BackColor', 'ForeColor', 'CreateLink', 'DeleteLink', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent');
}
echo '<input class="crm-instant-editor-lhe-data" type="hidden" value="', htmlspecialcharsbx('{ "id":"' . CUtil::JSEscape($editorID) . '", "wrapperId":"' . CUtil::JSEscape($wrapperID) . '", "jsName":"' . CUtil::JSEscape($editorJsName) . '" }'), '" />';
echo '<div id="', htmlspecialcharsbx($wrapperID), '" style="display:none;">';
CModule::IncludeModule('fileman');
$editor = new CLightHTMLEditor();
$editor->Show(array('id' => $editorID, 'width' => '600', 'height' => '200', 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bResizable' => false, 'jsObjName' => $editorJsName, 'bInitByJS' => false, 'bSaveOnBlur' => true, 'bHandleOnPaste' => false, 'toolbarConfig' => $toolbarConfig));
echo '</div>';
}
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:56,代码来源:crm_view_helper.php
示例16: BDS_EditEvent
//.........这里部分代码省略.........
?>
)</option>
</select>
</td>
</tr>
<?php
}
?>
<tr><td class="dialog-par-name" style="height: 23px"><?php
echo GetMessage('EC_T_CALENDAR');
?>
:</td><td class="bxec-cal-sel-cel"><span><?php
echo GetMessage('EC_T_CREATE_DEF');
?>
</span><select id="<?php
echo $id;
?>
_edit_ed_calend_sel"></select><span style="display: none;"><?php
echo GetMessage('EC_T_CALEN_DIS_WARNING');
?>
</span>
</td></tr>
</table>
</div>
<?php
/* ####### TAB 1 : DESCRIPTION ####### */
?>
<div id="<?php
echo $id;
?>
_ed_tab_cont_1" class="bxec-d-cont-div bxec-lhe">
<?php
CModule::IncludeModule("fileman");
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => 'LHEEvDesc', 'width' => '455', 'height' => '285', 'inputId' => $id . '_edit_ed_desc', 'content' => '', 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => true, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'BackColor', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'FontSizeList', 'HeaderList'), 'jsObjName' => 'pLHEEvDesc', 'bInitByJS' => true, 'bSaveOnBlur' => false));
?>
</div>
<?php
if ($arParams['bSocNet']) {
?>
<?php
/* ####### TAB 2 : GUESTS ####### */
?>
<div id="<?php
echo $id;
?>
_ed_tab_cont_2" class="bxec-d-cont-div" style="padding: 5px 8px;">
<div style="padding: 0 0 6px 6px;">
<a id="<?php
echo $id;
?>
_planner_link" href="javascript:void(0);" title="<?php
echo GetMessage('EC_PLANNER_TITLE');
?>
" class="bxex-planner-link"><img src="/bitrix/images/1.gif" /><?php
echo GetMessage('EC_PLANNER2');
?>
</a>
</div>
<?php
echo GetMessage('EC_ADD_GUEST');
?>
:
<?php
if ($arParams['bExtranet']) {
$ExtraMode = 'E';
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:67,代码来源:event_calendar.php
示例17: wrapDescrLHE
function wrapDescrLHE($inputName, $content = '', $divId = false)
{
ob_start();
$ar = array('inputName' => $inputName, 'height' => '160', 'width' => '100%', 'content' => $content, 'bResizable' => true, 'bManualResize' => true, 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bAutoResize' => true, 'bSaveOnBlur' => true, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'CreateLink', 'DeleteLink', 'Source', 'BackColor', 'ForeColor'));
if ($divId) {
$ar['id'] = $divId;
}
$LHE = new CLightHTMLEditor();
$LHE->Show($ar);
$sVal = ob_get_contents();
ob_end_clean();
return $sVal;
}
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:13,代码来源:pay_system_edit.php
示例18: function
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
// Light Visual BB Editor
if (CModule::IncludeModule("fileman")) {
?>
<script>
// Submit form by ctrl+enter
window.blogCommentCtrlEnterHandler = function(e)
{
submitComment();
};
</script>
<?php
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => 'LHEPhotoBlogCom', 'width' => $arParams['EDITOR_WIDTH'], 'height' => $arParams['EDITOR_DEFAULT_HEIGHT'], 'inputId' => 'comment', 'inputName' => 'comment', 'content' => "", 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'Quote'), 'jsObjName' => 'oBlogComLHE', 'bSaveOnBlur' => false, 'BBCode' => true, 'bResizable' => false, 'bQuoteFromSelection' => true, 'ctrlEnterHandler' => 'blogCommentCtrlEnterHandler', 'bSetDefaultCodeView' => false, 'bBBParseImageSize' => true));
}
开发者ID:rasuldev,项目名称:torino,代码行数:19,代码来源:lhe.php
示例19: elseif
?>
window.__bxst_result.stickers = <?php
echo CUtil::PhpToJSObject($Stickers);
?>
;
<?php
}
?>
window.__bxst_result.show = <?php
echo CSticker::GetBShowStickers() ? 'true' : 'false';
?>
;
</script>
<?php
} elseif ($action == 'load_lhe') {
$LHE = new CLightHTMLEditor();
$LHE->Show(array('id' => 'LHEBxStickers', 'width' => '230', 'height' => '100', 'inputId' => 'stickers_ed', 'content' => 'Text', 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 'ForeColor', 'InsertOrderedList', 'InsertUnorderedList', 'CreateLink'), 'jsObjName' => 'oLH
|
请发表评论