Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict With CKG Edit #20

Open
rsynnest opened this issue Oct 9, 2017 · 4 comments
Open

Conflict With CKG Edit #20

rsynnest opened this issue Oct 9, 2017 · 4 comments

Comments

@rsynnest
Copy link

rsynnest commented Oct 9, 2017

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 turnermm/ckgedit#316 and I am having the same problem.

@hever
Copy link

hever commented Nov 1, 2017

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

@rsynnest
Copy link
Author

rsynnest commented Dec 4, 2018

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

@neuralyzer
Copy link
Owner

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

@nomadjimbob
Copy link
Contributor

nomadjimbob commented Apr 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants