aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/jquery/jquery-migrate.min.js
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2016-02-18 12:19:07 +0100
committerAndreas Gohr <gohr@cosmocode.de>2016-02-18 12:19:07 +0100
commitb24d91954b3e643fa93997b290b41c48da574647 (patch)
treeeaf3ab1d6312ed13bdd5de546ef0412cba14f8f3 /lib/scripts/jquery/jquery-migrate.min.js
parent023953f040c1f54e1ec2a8c92362d4bf4afc0812 (diff)
downloaddokuwiki-b24d91954b3e643fa93997b290b41c48da574647.tar.gz
dokuwiki-b24d91954b3e643fa93997b290b41c48da574647.zip
refactor page saving and introduce COMMON_WIKIPAGE_SAVE
This makes the saveWikiText() function a little easier to read and moves external edit handling to its own function. Behavior stays the same (tests are unchanged). In addition a new event COMMON_WIKIPAGE_SAVE is introduced that makes intercepting and acting on page saves much easier than possible before. Developers can: * prevent saves by either preventing the default action or overwriting the contentChanged field in a BEFORE hook * enforce saves even when no content changed by overwriting the contentChanged field in a BEFORE hook * Adjust the saved content by modifying the newContent field in a BEFORE hook * Adjust the stored change log information (summary, type, extras) in an AFTER hook * Easily know if a page was deleted, created or edited by inspecting the changeType field * what ever they want before or after a wiki page is saved
Diffstat (limited to 'lib/scripts/jquery/jquery-migrate.min.js')
0 files changed, 0 insertions, 0 deletions