Doesn't work with fastwiki plugin
Created by: zioth
fastwiki (https://www.dokuwiki.org/plugin:fastwiki) switches to edit mode without reloading the page, so codemirror doesn't work when it's installed. Several people have wanted to use the two plugins side-by-side (see https://github.com/zioth/dokuwiki_fastwiki/issues/18).
I'm not sure how to install the uncompressed version of your plugin, but I believe you can fix this by adding the following code to init.js:
// fastwiki plugin support
jQuery(window).on('fastwiki:afterSwitch', function(evt, viewMode, isSectionEdit, prevViewMode) {
if (viewMode == 'edit' || isSectionEdit) {
var textarea = jQuery('#wiki__text');
if (textarea.length) {
initMode();
initHooks();
initSettingsMenu();
if (getSetting('nativeeditor') === '0') {
initCodeMirror();
}
}
}
else {
destroyCodeMirror();
}
});