本文整理汇总了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';