Skip to content
Permalink
Browse files

Fixes #487, return to edited section on save or cancel

  • Loading branch information...
turnermm committed Jul 16, 2019
1 parent 14d06b8 commit 1ed2aa2a10d516fc9767b50de48e9e882ce5d310
Showing with 11 additions and 2 deletions.
  1. +9 −0 action/edit.php
  2. +1 −1 plugin.info.txt
  3. +1 −1 version
@@ -655,11 +655,19 @@ function _print()
?>
<?php
global $INPUT;
if($this->page_from_template) {
$ckg_template = 'tpl';
}
else $ckg_template ="";
if($INPUT->has('hid')) {
$hid = $INPUT->str('hid');
}
else {
$hid = "";
}
?>
<form id="dw__editform" method="post" action="<?php echo script()?>" accept-charset="<?php echo $lang['encoding']?>">
<div class="no">
@@ -672,6 +680,7 @@ function _print()
<input type="hidden" id="fck_preview_mode" name="fck_preview_mode" value="nil" />
<input type="hidden" id="fck_wikitext" name="fck_wikitext" value="__false__" />
<input type="hidden" id="styling" name="styling" value="styles" />
<input type="hidden" id="hid" name="hid" value="<?php echo $hid; ?>" />
<input type="hidden" id="template" name="template`" value="<?php echo $ckg_template?>" />
<?php
if(function_exists('formSecurityToken')) {
@@ -1,7 +1,7 @@
base ckgedit
author Myron Turner
email turnermm02@shaw.ca
date 2019-07-11
date 2019-07-16
name ckgedit
desc WYSIWYG plugin for Dokuwiki
url https://www.dokuwiki.org/plugin:ckgedit
@@ -1,2 +1,2 @@
master_19-Jul_11-10_55
_19-Jul_16-07_41

0 comments on commit 1ed2aa2

Please sign in to comment.
You can’t perform that action at this time.