Differences From 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)
To Artifact [b0c825fcfc]:
- File src/fossil.page.pikchrshow.js — part of check-in [4f69773183] at 2020-09-17 16:31:21 on branch trunk — Implemented most of the feedback from [https://pikchr.org/home/forumpost/f538d8e7f7], with the exceptions being documented in that thread. /pikchrshow now longer uses the mode-swap feature (seems superfluous there) and tapping anywhere in the body, outside of the source/svg container element, now turns off those buttons on all pikchrs where they are currently visible. Consolidated pikchr-rendering impl for markdown/fossil/pikchrshow/pikchr command. (user: stephan size: 21127)
| ︙ | ︙ | |||
324 325 326 327 328 329 330 |
label = "SVG";
f.showMarkupAlignment(false);
D.parseHtml(D.clearElement(preTgt), P.response.raw);
svg = f.getSvgNode(this.response.raw);
if(svg){ /*for copy button*/
this.e.taPreviewText.value = svg.outerHTML;
}
| < < < | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
label = "SVG";
f.showMarkupAlignment(false);
D.parseHtml(D.clearElement(preTgt), P.response.raw);
svg = f.getSvgNode(this.response.raw);
if(svg){ /*for copy button*/
this.e.taPreviewText.value = svg.outerHTML;
}
break;
case 1:
label = "Markdown";
f.showMarkupAlignment(true);
this.e.taPreviewText.value = [
'```pikchr'+f.getMarkupAlignmentClass(),
this.response.inputText.trim(), '```'
|
| ︙ | ︙ |