當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。