dokuwiki-plugin-revealjs icon indicating copy to clipboard operation
dokuwiki-plugin-revealjs copied to clipboard

Conflict With CKG Edit

Open rsynnest opened this issue 7 years ago • 4 comments

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.

rsynnest avatar Oct 09 '17 20:10 rsynnest

Same problem. CKG Edit is no.1 in WYSIWYG editor, not rarely used.

hever avatar Nov 01 '17 15:11 hever

Hi, this is still an issue and I am willing to help work on this if you can point me in the right direction

rsynnest avatar Dec 04 '18 18:12 rsynnest

Hi, any help is of course greatly appreciated. I'd be more than happy to see this plugin becoming more of a community project.

neuralyzer avatar Dec 04 '18 19:12 neuralyzer

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

nomadjimbob avatar Apr 03 '20 12:04 nomadjimbob