当前位置: 首页>>代码示例>>PHP>>正文


PHP CKFinder::SetupCKEditorObject方法代码示例

本文整理汇总了PHP中CKFinder::SetupCKEditorObject方法的典型用法代码示例。如果您正苦于以下问题:PHP CKFinder::SetupCKEditorObject方法的具体用法?PHP CKFinder::SetupCKEditorObject怎么用?PHP CKFinder::SetupCKEditorObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CKFinder的用法示例。


在下文中一共展示了CKFinder::SetupCKEditorObject方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: SetupCKEditor

 public static function SetupCKEditor(&$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null)
 {
     if (empty($basePath)) {
         $basePath = CKFINDER_DEFAULT_BASEPATH;
     }
     $ckfinder = new CKFinder($basePath);
     $ckfinder->SetupCKEditorObject($editorObj, $imageType, $flashType);
 }
开发者ID:rezarahimi4861,项目名称:icmf,代码行数:8,代码来源:ckfinder_php5.php

示例2: CKEditor

  *</td>
</tr>
<tr>
  <td class="desc">Sub T&iacute;tulo:</td>
  <td colspan="3" class="campo"><input name="subtitulo" type="text" class="form" size="50" maxlength="55" /></td>
</tr>
<tr>
  <td class="desc">Descripci&oacute;n:</td>
  <td colspan="3" class="campo"><?php 
    include_once "admini/ckeditor/ckeditor.php";
    include_once 'admini/ckfinder/ckfinder.php';
    $CKEditor = new CKEditor();
    $CKEditor->basePath = '/admini/ckeditor/';
    $CKFinder = new CKFinder();
    $CKFinder->BasePath = '/admini/ckfinder/';
    $CKFinder->SetupCKEditorObject($CKEditor);
    $CKEditor->config["width"] = 650;
    $CKEditor->config["height"] = 300;
    $CKEditor->editor("descripcion", " ");
    ?>
</td>
</tr>
<tr class="tabla">
<!--   <td>Estado de Ubicaci&oacute;n:</td>
<td colspan="3"><select class="form" name="id_estado" onChange="cargar_ciudad(this.value,0);">
 <option value="0">Seleccione</option>
  <?php 
    /*$sql_edo=mysql_query("SELECT * FROM estado ORDER BY nombre ASC");
    	while($edo=mysql_fetch_array($sql_edo))
    	{*/
    ?>
开发者ID:seven07ve,项目名称:vendorepuestos,代码行数:31,代码来源:vende.php

示例3: updateHTML

 /**
  * Updates the AdminFrontendObject 
  */
 private function updateHTML()
 {
     $content = "<form action=\"" . $this->action . "\" method = \"" . $this->method . "\">";
     foreach ($this->inputs as $input) {
         $content .= "<fieldset>";
         $content .= "<label>" . $input['label'] . "</label>";
         if ($input['type'] == "ckeditor") {
             $content .= "<br/><br/>";
             $ckeditor = new CKEditor();
             if ($input['readonly']) {
                 $ckeditor->config['readOnly'] = true;
             }
             $ckeditor->basePath = '../lib/ckeditor/';
             $ckfinder = new CKFinder();
             $ckfinder->BasePath = '../lib/ckfinder/';
             $ckfinder->SetupCKEditorObject($ckeditor);
             $ckeditor->returnOutput = true;
             $content .= $ckeditor->editor($input['name'], $input['value']);
         } else {
             if ($input['type'] == "radio") {
                 foreach ($input["radios"] as $radio => $value) {
                     $content .= '<input type="radio" name="' . $input['name'] . '" value="' . $value . '" ';
                     if ($radio == $input['selected']) {
                         $content .= ' checked';
                     }
                     $content .= '> ' . $radio;
                 }
             } else {
                 if ($input['type'] == "textarea") {
                     $content .= "<textarea rows=\"20\" name=\"" . $input['name'] . "\" ";
                     if ($input['readonly']) {
                         $content .= 'disabled="disabled" ';
                     }
                     if ($input['required']) {
                         $content .= 'required="required" ';
                     }
                     $content .= ">" . $input['value'] . "</textarea>";
                 } else {
                     $content .= "<input type=\"" . $input['type'] . "\" name=\"" . $input['name'] . "\" value=\"" . $input['value'] . "\" ";
                     if ($input['required']) {
                         $content .= " required=\"required\" ";
                     }
                     if ($input['readonly']) {
                         $content .= 'disabled="disabled" ';
                     }
                     $content .= '>';
                 }
             }
         }
         $content .= "</fieldset>";
     }
     parent::setContent($content);
     if (count($this->buttons) > 0) {
         $footer = "<div class=\"submit_link\">";
         foreach ($this->selects as $name => $items) {
             if (!is_array($items)) {
                 continue;
             }
             $footer .= '<select name="' . $name . '">';
             foreach ($items as $optionname => $optionvalue) {
                 $footer .= '<option value="' . $optionvalue . '">' . $optionname . '</option>';
             }
             $footer .= '</select>';
         }
         foreach ($this->buttons as $button) {
             if ($button['url'] != null) {
                 $footer .= '<a href="' . $button['url'] . '">';
                 $footer .= "<input type=\"button\" value=\"" . $button['text'] . "\" ";
                 if ($button['blue']) {
                     $footer .= 'class="alt_btn" >';
                 } else {
                     $footer .= ">";
                 }
                 $footer .= '</a>';
             } else {
                 $footer .= "<input type=\"submit\" value=\"" . $button['text'] . "\" ";
                 if ($button['blue']) {
                     $footer .= 'class="alt_btn" >';
                 } else {
                     $footer .= ">";
                 }
             }
         }
         $footer .= "</div></form>";
         parent::setFooter($footer);
     } else {
         parent::setContent(parent::getContent() . "</form>");
     }
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:92,代码来源:frontend_AdminFrontend.php

示例4: array

    if (!isset($arr[0]['vCurrency']) || trim($arr[0]['vCurrency']) == '') {
        $arr[0]['vCurrency'] = array();
    }
}
$arr[0]['eCryptAlgo'] = isset($arr[0]['eCryptAlgo']) ? $arr[0]['eCryptAlgo'] : '';
$cryptAlgo = $gdbobj->getEnumSelect("" . PRJ_DB_PREFIX . "_organization_default_settings", "eCryptAlgo", "Data[eCryptAlgo]", "eCryptAlgo", "", "" . $arr[0]['eCryptAlgo'] . "", " class='' title='" . $smarty->get_template_vars('LBL_SELECT') . " " . $smarty->get_template_vars('LBL_ENCRYPTION_METHOD') . "' ", "", "Select Encryption Method");
//------------------  TO CONVERT CKEDITOR FROM TEXTAREA   --------------------------------------//
include_once CK_EDITOR_PATH . 'ckeditor.php';
include_once CK_EDITOR_PATH . 'ckfinder/ckfinder.php';
$ckeditor = new CKEditor();
$ckeditor->basePath = CK_EDITOR_URL;
$ckfinder = new CKFinder();
$ckfinder->BasePath = SITE_FOLDER . 'components/ckeditor/ckfinder/';
// Note: BasePath property in CKFinder class starts with capital letter
$ckfinderpath = SITE_FOLDER . 'components/ckeditor/ckfinder/';
$ckfinder->SetupCKEditorObject($ckeditor);
if (isset($ENABLE_AUCTION) && $ENABLE_AUCTION == 'Yes') {
    $awardStatus = $stMstrObj->getDetails('*, vStatus_' . LANG . ' as vStatus', " AND vForAuction LIKE '%RFQ2 Award,%' AND vStatus_en LIKE 'Auth%' ", " iDisplayOrder ASC ");
    $awardAcceptStatus = $stMstrObj->getDetails('*, vStatus_' . LANG . ' as vStatus', " AND vForAuction LIKE '%RFQ2 Award Acceptance%' AND vStatus_en LIKE 'Auth%' ", " iDisplayOrder ASC ");
    // pr($awardAcceptStatus); exit;
    $smarty->assign('awardStatus', $awardStatus);
    $smarty->assign('awardAcceptStatus', $awardAcceptStatus);
}
$rfq2awrdacptsel = array();
$rfq2awrdstssel = array();
if ($orgdtls[0]['eOrganizationType'] == 'Buyer2') {
    if (trim($arr[0]['vRFQ2AwardAcceptLevel']) != '') {
        $rfq2awrdacptsel = @explode(',', $arr[0]['vRFQ2AwardAcceptLevel']);
    }
} else {
    if (trim($arr[0]['vRFQ2AwardStatusLevel']) != '') {
开发者ID:nstungxd,项目名称:F2CA5,代码行数:31,代码来源:createorganizationpref.php

示例5: testSetupCKEditorObject

 /**
  * Tests CKFinder->SetupCKEditorObject()
  */
 public function testSetupCKEditorObject()
 {
     // TODO Auto-generated CKFinderTest->testSetupCKEditorObject()
     $this->markTestIncomplete("SetupCKEditorObject test not implemented");
     $this->cKFinder->SetupCKEditorObject();
 }
开发者ID:ade24,项目名称:vcorner,代码行数:9,代码来源:CKFinderTest.php


注:本文中的CKFinder::SetupCKEditorObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。