mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Added pad shortcut disabling feature
This commit is contained in:
parent
9335ae00d0
commit
26aeb7b705
4 changed files with 110 additions and 22 deletions
|
@ -41,6 +41,12 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
res.cookie('language', settings.padOptions.lang);
|
||||
}
|
||||
|
||||
// Enable the pad shortcut keys from settings.json
|
||||
if (settings.padShortcutEnabled !== undefined)
|
||||
{
|
||||
res.cookie('padShortcutEnabled', JSON.stringify(settings.padShortcutEnabled));
|
||||
}
|
||||
|
||||
// The below might break for pads being rewritten
|
||||
var isReadOnly = req.url.indexOf("/p/r.") === 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue