當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CKFinder::SetupCKEditor方法代碼示例

本文整理匯總了PHP中CKFinder::SetupCKEditor方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKFinder::SetupCKEditor方法的具體用法?PHP CKFinder::SetupCKEditor怎麽用?PHP CKFinder::SetupCKEditor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CKFinder的用法示例。


在下文中一共展示了CKFinder::SetupCKEditor方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 public function init($content = null)
 {
     require_once $this->ckeditor_path . "ckeditor.php";
     require_once $this->ckfinder_path . "ckfinder.php";
     $ckeditor = new CKEditor();
     $ckeditor->returnOutput = true;
     $ckeditor->basePath = $this->ckeditor_webpath;
     CKFinder::SetupCKEditor($ckeditor, $this->ckfinder_webpath);
     //die($this->_content);
     $contentarea = $ckeditor->editor("editor_content", $content);
     return $contentarea;
 }
開發者ID:baowzh,項目名稱:renfangbaosong,代碼行數:12,代碼來源:CKEditor.php

示例2: CKEditor

						
												<textarea name="txtWarranty_offer<?php 
    echo $ln;
    ?>
" cols="80" rows="6" id="txtWarranty_offer<?php 
    echo $ln;
    ?>
"><?php 
    echo $warranty_offer;
    ?>
</textarea>	
						
<?php 
    $ckeditor = new CKEditor();
    $ckeditor->basePath = 'ckeditor/';
    CKFinder::SetupCKEditor($ckeditor, 'ckfinder/');
    $ckeditor->replace("txtWarranty_offer" . $ln);
    ?>
										</td>
				</tr>
				
				<tr>
					<td width="15%" class="smallfont" align="right"><?php 
    echo TNOTSHOW;
    ?>
</td>
					<td width="1%" class="smallfont" align="center"></td>
					<td width="83%" class="smallfont">
						<input type="checkbox" name="chkStatus<?php 
    echo $ln;
    ?>
開發者ID:bestwishforyou95,項目名稱:congnghemoitruong,代碼行數:30,代碼來源:module_pro_m.php

示例3: printNotFound

    $warned = true;
}
// This is a check for the CKEditor PHP integration file. If not found, the paths must be checked.
// Usually you'll not include it in your site and use correct path in line 57 and basePath in line 70 instead.
// Remove this code after correcting the include_once statement.
if (!@file_exists('../../../ckeditor/ckeditor.php')) {
    if (@file_exists('../../../ckeditor/ckeditor.js') || @file_exists('../../../ckeditor/ckeditor_source.js')) {
        printNotFound('CKEditor 3.1+');
    } else {
        printNotFound('CKEditor');
    }
}
include_once '../../../ckeditor/ckeditor.php';
require_once '../../ckfinder.php';
// This is a check for the CKEditor class. If not defined, the paths in lines 57 and 70 must be checked.
if (!class_exists('CKEditor')) {
    printNotFound('CKEditor');
} else {
    $initialValue = '<p>Just click the <b>Image</b> or <b>Link</b> button, and then <b>&quot;Browse Server&quot;</b>.</p>';
    $ckeditor = new CKEditor();
    $ckeditor->basePath = '../../../ckeditor/';
    // Just call CKFinder::SetupCKEditor before calling editor(), replace() or replaceAll()
    // in CKEditor. The second parameter (optional), is the path for the
    // CKFinder installation (default = "/ckfinder/").
    CKFinder::SetupCKEditor($ckeditor, '../../');
    $ckeditor->editor('CKEditor1', $initialValue);
}
?>
</body>
</html>
開發者ID:nstungxd,項目名稱:F2CA5,代碼行數:30,代碼來源:ckeditor.php

示例4: CKEditor

<?php

include_once "../ckeditor_ckfinder/ckeditor/ckeditor.php";
//引用關鍵文件
include_once "../ckeditor_ckfinder/ckfinder/ckfinder.php";
//引用關鍵文件
$initialValue = '';
//編輯區域顯示的默認值
$CKEditor = new CKEditor();
//實例化
$CKEditor->basePath = '../ckeditor_ckfinder/ckeditor/';
//設定ckeditor的目錄
$CKEditor->config['width'] = 1200;
//寬度
$CKEditor->config['height'] = 350;
//高度
$config['skin'] = 'office2003';
//kama,office2003,v2
CKFinder::SetupCKEditor($CKEditor, '../ckeditor_ckfinder/ckfinder/');
//定義ckfinder的目錄
$CKEditor->editor("content", $initialValue, $config);
//建立editor1窗口,editor1的名字,$initialValue默認值,$config設置皮膚
開發者ID:ywang2014,項目名稱:WebSys,代碼行數:22,代碼來源:ckeditor_init.php

示例5: show_fckeditor

function show_fckeditor($name, $toolbarset = 'Admin', $expand_toolbar = true, $height = "200", $value = "", $width = null)
{
    include_once ROOT_DIR . 'ckeditor/ckeditor_php5.php';
    include_once ROOT_DIR . 'ckfinder/ckfinder.php';
    $editor = new CKEditor(ROOT_DIR . 'ckeditor');
    $editor->config['toolbar'] = $toolbarset;
    $editor->config['toolbarStartupExpanded'] = $expand_toolbar;
    $editor->config['height'] = $height;
    CKFinder::SetupCKEditor($editor, '/ckfinder/');
    if ($width) {
        $editor->config['width'] = $width;
    }
    $editor->editor($name, $value);
}
開發者ID:justin1986,項目名稱:eachbb,代碼行數:14,代碼來源:frame.php

示例6: CKeditor

<?php

require_once $ckEditor;
require_once $ckFinder;
$oCKeditor = new CKeditor(get_class($model) . '[' . $attribute . ']');
$oCKeditor->basePath = $ckBasePath;
if (isset($config) && is_array($config)) {
    foreach ($config as $key => $value) {
        $oCKeditor->config[$key] = $value;
    }
}
CKFinder::SetupCKEditor($oCKeditor, Yii::app()->request->baseUrl . '/ckfinder/');
$oCKeditor->editor(get_class($model) . '[' . $attribute . ']', $defaultValue);
開發者ID:GsHatRed,項目名稱:Yiitest,代碼行數:13,代碼來源:CKEditorView.php

示例7: testSetupCKEditor

 /**
  * Tests CKFinder->SetupCKEditor()
  */
 public function testSetupCKEditor()
 {
     // TODO Auto-generated CKFinderTest->testSetupCKEditor()
     $this->markTestIncomplete("SetupCKEditor test not implemented");
     $this->cKFinder->SetupCKEditor();
 }
開發者ID:ade24,項目名稱:vcorner,代碼行數:9,代碼來源:CKFinderTest.php


注:本文中的CKFinder::SetupCKEditor方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。