HTML link menu: Difference between revisions

From SuperMemo 18 Help
Jump to navigation Jump to search
Initial import
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Use '''Insert HTML link''' to insert hyperlinks into the text in the [[HTML component]]. Apart from standard hyperlinks, you will also be able to link to other [[Glossary#element | elements]] or [[Glossary#registry member | registry members]] in SuperMemo.
Use '''Insert HTML link''' to insert hyperlinks into the text in the [[HTML component]]. Apart from standard hyperlinks, you will also be able to link to other [[Glossary:Element|elements]] or various [[Glossary:Registry_member|registry members]] in SuperMemo.


The '''Insert HTML link''' submenu includes the following options:
The '''Insert HTML link''' submenu includes the following options:


* '''Web address''' (''Ctrl+K'') - insert a standard hyperlink to any address on the Internet. Before choosing '''Insert HTML link : Web address''', select a text that is to form the hyperlink anchor. SuperMemo will open a dialog and ask you to type in the Internet address (URL). If you click your hyperlink in the [[Glossary#presentation mode | presentation mode]] (e.g. after pressing ''Esc''), SuperMemo will load the linked file from the Internet (or execute another relevant action, e.g. open a new e-mail message to send if you use a "''mailto:''" hyperlink). Example: (1) select text in your HTML document, (2) press ''Ctrl+K'', (3) type ''<nowiki>http://cnn.com</nowiki>'' and press ''Enter'', (4) press ''Esc'' (to return to the presentation mode), (5) click on the hyperlink (CNN.com page should show), (6) use the back button ('''<''') or [[Keyboard shortcuts | ''Alt+Left'']] or ''Esc'' to return to the original text. Note that once SuperMemo loads an external page (e.g. CNN.com page), HTML component menu is automatically replaced with the standard Internet Explorer menu
* '''Web address''' (''Ctrl+K'') - insert a standard hyperlink to any address on the Internet. Before choosing '''[[Component menu#Insert HTML link|Insert HTML link]] : Web address''', select a text that is to form the hyperlink anchor text. SuperMemo will open a dialog and ask you to type in the Internet address (URL). If you click your hyperlink in the [[Glossary:Presentation_mode|presentation mode]] (e.g. after pressing ''Esc''), SuperMemo will load the linked file from the Internet (or execute another relevant action, e.g. open a new e-mail message to send if you use a "''mailto:''" hyperlink). Example:
* '''Element''' - insert a hyperlink to another [[Glossary#collection | element]] in the [[Glossary#collection | collection]]. When you execute this option, SuperMemo will open the [[contents window]] and ask you to choose an element to link to. Once you have selected the element to link to, double click it or click the button '''Accept''' at the bottom of the contents window. When you switch back to the [[Glossary#presentation mode | presentation mode]] (e.g. with ''Esc''), and click your new hyperlink, SuperMemo will display the linked element in the [[element window]]. To come back to the linking element, click '''<''' on the [[element toolbar]] (or press [[Keyboard shortcuts | ''Alt+Left'']])
*# select text in your HTML document,
* '''Element number'''- insert a hyperlink to another element by using that element's physical number. If your text already refers to another element, e.g. ''#1481'', select the element number and choose '''Element number''' to immediately link to that element number
*# press ''Ctrl+K'',  
* '''Text registry''' - insert a hyperlink to another text in the text [[Using registries | registry]]. Before choosing '''Insert HTML link : Text registry''', select a text that is supposed to be hyperlinked. When you execute this option, SuperMemo will open the text registry and ask you to choose a text to link to. Once you have selected the text in the registry, double-click it or click the button '''Accept''' at the bottom of the text registry window. When you switch back to the [[Glossary#presentation mode | presentation mode]] (e.g. with ''Esc''), and click the new hyperlink, SuperMemo will display the hyperlinked text
*# type ''<nowiki>http://cnn.com</nowiki>'' and press ''Enter'',
* '''HTML file''' - insert a hyperlink to a stand-alone HTML file. Before choosing '''Insert HTML link : HTML file''', select a text that is supposed to be hyperlinked. When you execute this option, SuperMemo will open a file dialog and ask you to choose an HTML file available on your hard disk or on a network drive. Once you have located the file, click '''Open'''. When you switch back to the [[Glossary#presentation mode | presentation mode]] (e.g. with ''Esc''), and click the new hyperlink, SuperMemo will load the linked file into the [[HTML component]]. To come back to the previously displayed text, choose '''Back''' on the HTML menu
*# press ''Esc'' (to return to the [[Glossary:Presentation_mode|presentation mode]]),
* '''Registry image''' - insert an image from the image [[Using registries | registry]]. When you execute this option, SuperMemo will open the image registry and ask you to choose an image to link to. Once you have selected the image, click the button '''Accept''' at the bottom of the image registry window. Your HTML component will now display the selected image inserted in your HTML code
*# click on the hyperlink ([http://cnn.com CNN.com] page should show),
* '''Registry script''' - insert a link to a SuperMemo [[Scripts | script]]. Select a text and choose this option to open the script registry. Double-click the script to link to. Once you click on a link to a script, the script will be executed in the same was as it is executed via script components
*# use the '''Back''' button or ''Alt+Left'' or ''Esc'' to return to the original text.
:Note that once SuperMemo loads an external page (e.g. [http://cnn.com CNN.com] page), HTML [[component menu]] is automatically replaced with the standard Internet Explorer menu
* '''Element''' - insert a hyperlink to another [[Glossary:Element|element]] in the [[Glossary:Collection|collection]]. When you execute this option, SuperMemo will open the [[Contents|'''Contents''' window]] and ask you to choose an [[Glossary:Element|element]] to link to. Once you have selected the [[Glossary:Element|element]] to link to, double click it or click the button '''Accept''' at the bottom of the [[Contents|'''Contents''' window]]. When you switch back to the [[Glossary:Presentation_mode|presentation mode]] (e.g. with ''Esc''), and click your new hyperlink, SuperMemo will display the linked [[Glossary:Element|element]] in the [[element window]]. To come back to the linking [[Glossary:Element|element]], click the '''Back''' button on the [[navigation bar]] (or press ''Alt+Left'')
* '''Element number''' - insert a hyperlink to another [[Glossary:Element|element]] by using that element's physical number. If your text already refers to another [[Glossary:Element|element]], e.g. ''#1481'', select the element number and choose '''Element number''' to immediately link to that element number
* '''Text registry''' - insert a hyperlink to another text in the text [[Glossary:Registry|registry]]. Before choosing '''[[Component menu#Insert HTML link|Insert HTML link]] : Text registry''', select a text that is supposed to be hyperlinked. When you execute this option, SuperMemo will open the text [[Glossary:Registry|registry]] and ask you to choose a text to link to. Once you have selected the text in the registry, double-click it or click the button '''Accept''' at the bottom of the text [[registry window]]. When you switch back to the [[Glossary:Presentation_mode|presentation mode]] (e.g. with ''Esc''), and click the new hyperlink, SuperMemo will display the hyperlinked text
* '''HTML file''' - insert a hyperlink to a stand-alone HTML file. Before choosing '''[[Component menu#Insert HTML link|Insert HTML link]] : HTML file''', select a text that is supposed to be hyperlinked. When you execute this option, SuperMemo will open a file dialog and ask you to choose an HTML file available on your hard disk or on a network drive. Once you have located the file, click '''Open'''. When you switch back to the [[Glossary:Presentation_mode|presentation mode]] (e.g. with ''Esc''), and click the new hyperlink, SuperMemo will load the linked file into the [[HTML component]]. To come back to the previously displayed text, choose '''Back''' on the HTML browser menu
* '''Registry image''' - insert an image from the image [[Glossary:Registry|registry]]. When you execute this option, SuperMemo will open the image [[Glossary:Registry|registry]] and ask you to choose an image to link to. Once you have selected the image, click the button '''Accept''' at the bottom of the image [[registry window]]. Your [[HTML component]] will now display the selected image inserted in your HTML code
* '''Registry script''' - insert a link to a SuperMemo [[Scripts|script]]. Select a text and choose this option to open the script [[Glossary:Registry|registry]]. Double-click the script to link to. Once you click on a link to a script, the script will be executed in the same was as it is executed via script [[Glossary:Component|components]]


Using '''Insert HTML Link : Web address''' you can also create hyperlinks based on various protocols such as ''ftp'', ''file'', ''mailto'', etc. You can also link to MS Office applications. For example ''Outlook:Calendar'' link will open the calendar in your MS Outlook
Using '''[[Component menu#Insert HTML link|Insert HTML link]] : Web address''', you can also create hyperlinks based on various protocols such as ''ftp'', ''file'', ''mailto'', etc. You can also link to MS Office applications. For example ''Outlook:Calendar'' link will open the calendar in your MS Outlook

Latest revision as of 14:34, 10 April 2016

Use Insert HTML link to insert hyperlinks into the text in the HTML component. Apart from standard hyperlinks, you will also be able to link to other elements or various registry members in SuperMemo.

The Insert HTML link submenu includes the following options:

  • Web address (Ctrl+K) - insert a standard hyperlink to any address on the Internet. Before choosing Insert HTML link : Web address, select a text that is to form the hyperlink anchor text. SuperMemo will open a dialog and ask you to type in the Internet address (URL). If you click your hyperlink in the presentation mode (e.g. after pressing Esc), SuperMemo will load the linked file from the Internet (or execute another relevant action, e.g. open a new e-mail message to send if you use a "mailto:" hyperlink). Example:
    1. select text in your HTML document,
    2. press Ctrl+K,
    3. type http://cnn.com and press Enter,
    4. press Esc (to return to the presentation mode),
    5. click on the hyperlink (CNN.com page should show),
    6. use the Back button or Alt+Left or Esc to return to the original text.
Note that once SuperMemo loads an external page (e.g. CNN.com page), HTML component menu is automatically replaced with the standard Internet Explorer menu
  • Element - insert a hyperlink to another element in the collection. When you execute this option, SuperMemo will open the Contents window and ask you to choose an element to link to. Once you have selected the element to link to, double click it or click the button Accept at the bottom of the Contents window. When you switch back to the presentation mode (e.g. with Esc), and click your new hyperlink, SuperMemo will display the linked element in the element window. To come back to the linking element, click the Back button on the navigation bar (or press Alt+Left)
  • Element number - insert a hyperlink to another element by using that element's physical number. If your text already refers to another element, e.g. #1481, select the element number and choose Element number to immediately link to that element number
  • Text registry - insert a hyperlink to another text in the text registry. Before choosing Insert HTML link : Text registry, select a text that is supposed to be hyperlinked. When you execute this option, SuperMemo will open the text registry and ask you to choose a text to link to. Once you have selected the text in the registry, double-click it or click the button Accept at the bottom of the text registry window. When you switch back to the presentation mode (e.g. with Esc), and click the new hyperlink, SuperMemo will display the hyperlinked text
  • HTML file - insert a hyperlink to a stand-alone HTML file. Before choosing Insert HTML link : HTML file, select a text that is supposed to be hyperlinked. When you execute this option, SuperMemo will open a file dialog and ask you to choose an HTML file available on your hard disk or on a network drive. Once you have located the file, click Open. When you switch back to the presentation mode (e.g. with Esc), and click the new hyperlink, SuperMemo will load the linked file into the HTML component. To come back to the previously displayed text, choose Back on the HTML browser menu
  • Registry image - insert an image from the image registry. When you execute this option, SuperMemo will open the image registry and ask you to choose an image to link to. Once you have selected the image, click the button Accept at the bottom of the image registry window. Your HTML component will now display the selected image inserted in your HTML code
  • Registry script - insert a link to a SuperMemo script. Select a text and choose this option to open the script registry. Double-click the script to link to. Once you click on a link to a script, the script will be executed in the same was as it is executed via script components

Using Insert HTML link : Web address, you can also create hyperlinks based on various protocols such as ftp, file, mailto, etc. You can also link to MS Office applications. For example Outlook:Calendar link will open the calendar in your MS Outlook