Differences From Artifact [ec99ac1a7c]:
- File src/fossil.page.pikchrshow.js — part of check-in [bb56d3d5a2] at 2020-09-14 21:40:58 on branch trunk — pikchrshow: corrected clipboard copy contents for raw SVG mode (it was including containing DIV element). (user: stephan size: 20980)
To Artifact [3ebf07ea2d]:
- File src/fossil.page.pikchrshow.js — part of check-in [a1838297f9] at 2020-09-16 08:04:53 on branch trunk — pikchrshow, wikiedit, and fileedit now all respond to ctrl-enter in their editor to refresh the preview. The latter two, on their preview tabs, respond to ctrl-enter to switch back to the editor and give it focus. It's now possible to edit, preview, and switch back to the same editing position without the mouse :). (user: stephan size: 21213)
| ︙ | |||
76 77 78 79 80 81 82 83 84 85 86 87 88 89 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | + + + + + + |
// Setup the preview fieldset's LEGEND element...
D.append( P.e.previewLegend,
P.e.previewModeToggle,
'\u00a0',
P.e.previewCopyButton,
P.e.previewModeLabel,
P.e.markupAlignWrapper );
////////////////////////////////////////////////////////////
// Trigger preview on Ctrl-Enter.
P.e.taContent.addEventListener('keydown',function(ev){
if(ev.ctrlKey && 13 === ev.keyCode) P.preview();
}, false);
////////////////////////////////////////////////////////////
// Setup clipboard-copy of markup/SVG...
F.copyButton(P.e.previewCopyButton, {copyFromElement: P.e.taPreviewText});
P.e.previewModeLabel.addEventListener('click', ()=>P.e.previewCopyButton.click(), false);
////////////////////////////////////////////////////////////
|
| ︙ |