From 66e5fe4d8c4c6fae768305e31b45735f563b7500 Mon Sep 17 00:00:00 2001
From: bobzel
Date: Thu, 27 Apr 2023 11:10:56 -0400
Subject: updated some text shortcuts and enabled selecting regions to make
footnoes/elided text.
---
src/client/util/CurrentUserUtils.ts | 6 +++---
src/client/util/RTFMarkup.tsx | 40 ++++++++++++++++++-------------------
2 files changed, 23 insertions(+), 23 deletions(-)
(limited to 'src/client/util')
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 479fcd011..ca23e8f53 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -641,9 +641,9 @@ export class CurrentUserUtils {
{ title: "Under", toolTip: "Underline (Ctrl+U)", btnType: ButtonType.ToggleButton, icon: "underline", toolType:"underline", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
{ title: "Bullets", toolTip: "Bullet List", btnType: ButtonType.ToggleButton, icon: "list", toolType:"bullet", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
{ title: "#", toolTip: "Number List", btnType: ButtonType.ToggleButton, icon: "list-ol", toolType:"decimal", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
- { title: "Left", toolTip: "Left align (%[)", btnType: ButtonType.ToggleButton, icon: "align-left", toolType:"left", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}' }},
- { title: "Center", toolTip: "Center align (%^)", btnType: ButtonType.ToggleButton, icon: "align-center",toolType:"center", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
- { title: "Right", toolTip: "Right align (%])", btnType: ButtonType.ToggleButton, icon: "align-right", toolType:"right", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
+ { title: "Left", toolTip: "Left align (Cmd-[)", btnType: ButtonType.ToggleButton, icon: "align-left", toolType:"left", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}' }},
+ { title: "Center", toolTip: "Center align (Cmd-\\)",btnType: ButtonType.ToggleButton, icon: "align-center",toolType:"center", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
+ { title: "Right", toolTip: "Right align (Cmd-])", btnType: ButtonType.ToggleButton, icon: "align-right", toolType:"right", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'} },
{ title: "Dictate", toolTip: "Dictate", btnType: ButtonType.ToggleButton, icon: "microphone", toolType:"dictation", scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'}},
{ title: "NoLink", toolTip: "Auto Link", btnType: ButtonType.ToggleButton, icon: "link", toolType:"noAutoLink", expertMode:true, scripts: {onClick: '{ return toggleCharStyle(self.toolType, _readOnly_);}'}, funcs: {hidden: 'IsNoviceMode()'}},
// { title: "Strikethrough", tooltip: "Strikethrough", btnType: ButtonType.ToggleButton, icon: "strikethrough", scripts: {onClick:: 'toggleStrikethrough()'}},
diff --git a/src/client/util/RTFMarkup.tsx b/src/client/util/RTFMarkup.tsx
index 306d151d7..69f62fc3f 100644
--- a/src/client/util/RTFMarkup.tsx
+++ b/src/client/util/RTFMarkup.tsx
@@ -55,6 +55,26 @@ export class RTFMarkup extends React.Component<{}> {
{`\`\` `}
{` create a code snippet block`}
+
+ {`cmd-f `}
+ {` collapse to an inline footnote)`}
+
+
+ {`cmd-e `}
+ {` collapse to elided text`}
+
+
+ {`cmd-[ `}
+ {` left justify text`}
+
+
+ {`cmd-\\ `}
+ {` center text`}
+
+
+ {`cmd-] `}
+ {` right justify text`}
+
{`%% `}
{` restore default styling`}
@@ -75,18 +95,10 @@ export class RTFMarkup extends React.Component<{}> {
{`%alt `}
{` switch between primary and alternate text (see bottom right Button for hover options).`}
-
- {`%f `}
- {` create an inline footnote`}
-
{`%> `}
{` create a bockquote section. Terminate with 2 carriage returns`}
-
- {`%( `}
- {` start a section of inline elidable text. Terminate the inline text with %)`}
-
{`%q `}
{` start a quoted block of text that’s indented on the left and right. Terminate with %q`}
@@ -99,18 +111,6 @@ export class RTFMarkup extends React.Component<{}> {
{`%h `}
{` start a block of text that begins with a hanging indent`}
-
- {`%[ `}
- {` left justify text`}
-
-
- {`%^ `}
- {` center text`}
-
-
- {`%] `}
- {` right justify text`}
-
{`[:doctitle]] `}
{` hyperlink to document specified by it’s title`}
--
cgit v1.2.3-70-g09d2