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


PHP CKEditor::IsCompatible方法代码示例

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


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

示例1: dirname

// Autoloadable classes
global $wgAutoloadClasses;
$dir = dirname(__FILE__) . '/';
$wgAutoloadClasses['CKEditor'] = $dir . 'ckeditor/ckeditor_php5.php';
$wgAutoloadClasses['CKeditorParser'] = $dir . 'CKeditorParser.body.php';
$wgAutoloadClasses['CKeditorParserOptions'] = $dir . 'CKeditorParserOptions.body.php';
$wgAutoloadClasses['CKeditorParserWrapper'] = $dir . 'CKeditorParserWrapper.body.php';
$wgAutoloadClasses['CKeditorLinker'] = $dir . 'CKeditorLinker.php';
$wgAutoloadClasses['CKeditorSkin'] = $dir . 'CKeditorSkin.body.php';
$wgAutoloadClasses['CKeditorEditPage'] = $dir . 'CKeditorEditPage.body.php';
$wgAutoloadClasses['CKeditor_MediaWiki'] = $dir . 'CKeditor.body.php';
// Path to internationalization file
$wgExtensionMessagesFiles['CKeditor'] = $dir . 'CKeditor.i18n.php';
// Initialize FCKeditor and the MediaWiki extension
$ckeditor = new CKEditor('fake');
$wgFCKEditorIsCompatible = $ckeditor->IsCompatible();
$oCKeditorExtension = new CKeditor_MediaWiki();
// Hooked functions
global $wgHooks;
$wgHooks['ParserAfterTidy'][] = array($oCKeditorExtension, 'onParserAfterTidy');
$wgHooks['EditPage::showEditForm:initial'][] = array($oCKeditorExtension, 'onEditPageShowEditFormInitial');
$wgHooks['EditPage::showEditForm:fields'][] = array($oCKeditorExtension, 'onEditPageShowEditFormFields');
$wgHooks['EditPageBeforePreviewText'][] = array($oCKeditorExtension, 'onEditPageBeforePreviewText');
$wgHooks['EditPagePreviewTextEnd'][] = array($oCKeditorExtension, 'onEditPagePreviewTextEnd');
$wgHooks['CustomEditor'][] = array($oCKeditorExtension, 'onCustomEditor');
$wgHooks['LanguageGetMagic'][] = 'CKeditor_MediaWiki::onLanguageGetMagic';
$wgHooks['ParserBeforeStrip'][] = 'CKeditor_MediaWiki::onParserBeforeStrip';
$wgHooks['ParserBeforeInternalParse'][] = 'CKeditor_MediaWiki::onParserBeforeInternalParse';
$wgHooks['EditPageBeforeConflictDiff'][] = 'CKeditor_MediaWiki::onEditPageBeforeConflictDiff';
$wgHooks['SanitizerAfterFixTagAttributes'][] = 'CKeditor_MediaWiki::onSanitizerAfterFixTagAttributes';
$wgHooks['MakeGlobalVariablesScript'][] = 'CKeditor_MediaWiki::onMakeGlobalVariablesScript';
开发者ID:AbedSHP,项目名称:WYSIWYG-CKeditor,代码行数:31,代码来源:WYSIWYG.php


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