dokuwiki-plugin-revealjs
dokuwiki-plugin-revealjs copied to clipboard
Conflict With CKG Edit
RevealJS conflicts with the CKG Edit plugin, which is part of the base DokuWiki install and is essential for WYSIWYG Editing. The behavior: When you switch from DW Edit to CKG Edit, all section headings get duplicated. Only happens when RevealJS plugin is enabled This occurs on every page, not just pages with reveal enabled.
This is referenced in this issue https://github.com/turnermm/ckgedit/issues/316 and I am having the same problem.
Same problem. CKG Edit is no.1 in WYSIWYG editor, not rarely used.
Hi, this is still an issue and I am willing to help work on this if you can point me in the right direction
Hi, any help is of course greatly appreciated. I'd be more than happy to see this plugin becoming more of a community project.
A nasty fix is to disable Revealjs on the editor page by changing the file revealjs/syntax/header.php around line 30 from
$this->Lexer->addSpecialPattern('[ \t]={2,}[^\n]+={2,}[ \t](?=\n)', $mode, 'plugin_revealjs_header');
to
if($_GET['do']!='edit'){ $this->Lexer->addSpecialPattern('[ \t]={2,}[^\n]+={2,}[ \t](?=\n)', $mode, 'plugin_revealjs_header'); }
If you add the condition instead to the line $handler->_addCall('header', array($title, $level, $pos), $pos); within the handle function, the duplication stops, but CKGEdit doesn't display the headers as WYSIWYG, only as markdown headers