Bugzilla – Attachment 62057 Details for
Bug 18417
Advanced Editor - Rancor - add shortcuts for copyright symbols (C) (P)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18417 - Advanced Editor - Rancor - add shortcuts for copyright symbols (C) (P)
Bug-18417---Advanced-Editor---Rancor---add-shortcu.patch (text/plain), 1.29 KB, created by
Nick Clemens (kidclamp)
on 2017-04-11 15:31:24 UTC
(
hide
)
Description:
Bug 18417 - Advanced Editor - Rancor - add shortcuts for copyright symbols (C) (P)
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-04-11 15:31:24 UTC
Size:
1.29 KB
patch
obsolete
>From 6ffdf31da235dcf159a3c73dc24e9b6b8d89390e Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <pianohacker@gmail.com> >Date: Tue, 10 Nov 2015 12:02:06 -0700 >Subject: [PATCH] Bug 18417 - Advanced Editor - Rancor - add shortcuts for > copyright symbols (C) (P) > >To test: >1 - Apply patch >2 - Open advanced cataloging editor >3 - Try using Alt+P and Alt+C and note symbols are added >4 - Save record and ensure symbols are saved >--- > koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js >index 3b8622a..d2cc7b5 100644 >--- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js >+++ b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js >@@ -136,6 +136,14 @@ define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], > } > > var _editorKeys = { >+ 'Alt-C': function( cm ) { >+ cm.replaceRange( '©', cm.getCursor() ); >+ }, >+ >+ 'Alt-P': function( cm ) { >+ cm.replaceRange( 'â', cm.getCursor() ); >+ }, >+ > Enter: function( cm ) { > var cursor = cm.getCursor(); > cm.replaceRange( '\n', { line: cursor.line }, null, 'marcAware' ); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18417
:
62057
|
68501
|
68509
|
68510
|
70237
|
70238