当前位置: 首页>>代码示例>>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;未经允许,请勿转载。