Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
History of file src/fossil.page.wikiedit.js at check-in 98fa23f90b11394d
2025-03-09
| ||
10:04 | Add support for ticket/... wiki pages to /wikiedit. ... (file: [91f2b74a] check-in: [f01d60fd] user: stephan branch: trunk, size: 58442) | |
2024-08-31
| ||
20:26 | Re-integrate side-by-side diff sync scrolling in the /wikiedit and /fileedit diff views. ... (file: [04d8173c] check-in: [3765b464] user: stephan branch: diff-scroll-sync, size: 58381) | |
2024-07-31
| ||
11:06 | Remove approx. 150 lines of JS related to diff layout and syncronous scrolling. ... (file: [289bb16f] check-in: [61fd1e84] user: stephan branch: sbs-diff-css, size: 58346) | |
2023-12-22
| ||
14:32 | Add option to disable the shift-enter preview hotkey in /wikiedit, /fileedit, and /chat as a workaround for software keyboards which report the shift key being pressed when auto-capitalizing text, per discussion in forum post dbd5b68366147ce8. ... (file: [a0f1709b] check-in: [4bb5515c] user: stephan branch: trunk, size: 58384) | |
14:27 | Remove the write-perms check from the /ajax/preview-text route so that folks without checkin permissions can use /chat. Problem reported in forum post ed4a762b3a557898. Some code-adjacent end-of-line whitespace cleanups. ... (file: [a21ace29] check-in: [0c6e669a] user: stephan branch: trunk, size: 57490) | |
2023-12-16
| ||
01:10 | In /wikiedit and /fileedit, add a checkbox to disable shift-enter for toggling preview, as per discussion in forum post dbd5b68366147ce8. ... (file: [83700fd7] check-in: [8c1c4fa9] user: stephan branch: shift-enter-preview, size: 58386) | |
2022-11-13
| ||
16:26 | Apply fixes to all web views to pass WCAG 2.1 tests performed by "axe DevTools" browser extension. Most fixes related to screen reader compatibility, like making sure that form elements have labels. Some color changes to improve contrast on Default skin. Made more HTML5 compliant. Minor improvement to select combo boxes for UX. Improved Search form UX. Two minor bug fixes for malformed HTML. Fixed help pages to resolve issues with non-compliant HTML being generated. Mostly documented at https://fossil-scm.org/forum/forumpost/aafb17a981df4166 ... (file: [0f14445a] check-in: [1f231db3] user: ericwikman branch: wcag-2.1, size: 57666) | |
2022-02-15
| ||
21:35 | FIXME-comments in the code did not indicate issues and are now rephrased to be mere reminders. ... (file: [544ad612] check-in: [d253ece0] user: george branch: base-href-fix, size: 57832) | |
02:26 | Do not override base href for wiki pages. This needs testing. ... (file: [3065e783] check-in: [89dd3451] user: george branch: base-href-fix, size: 57700) | |
2021-09-29
| ||
16:45 | Consolidated /wikiedit, /pikchrshow, /fileedit, and /chat to use shift-enter to run preview mode. The former 3 previously used ctrl-enter but it was poorly documented and probably not widely used like ctrl-enter is in chat (to send a message). ... (file: [aa823d62] check-in: [13fabf3f] user: stephan branch: trunk, size: 57492) | |
2021-09-19
| ||
08:15 | /wikiedit, /fileedit, and /pikchrshow: tweak ctrl-enter preview toggle event handling to avoid spurious addition of CRNL to text area (patch from Warren in /chat). ... (file: [8b8450f7] check-in: [d6e7917a] user: stephan branch: trunk, size: 57490) | |
2021-09-14
| ||
09:04 | /wikiedit and /fileedit can now dynamically load more diff context. Discovered that the unified diff scrolling under the new diff model is not quite right and the magical CSS invocations to solve it properly elude me: for now they're scrolling (if needed) from a higher parent container level of the DOM than they should be, so the line numbers scroll along with the code. ... (file: [870ca9b1] check-in: [ef69044c] user: stephan branch: trunk, size: 57470) | |
2021-09-13
| ||
04:20 | Exposed the JS code which initializes diff context loading, for eventual use in /wikiedit and /fileedit (currently missing required metadata in the diff for those apps). Removed a now-extraneous PRE.udiff wrapper element in ajax response diffs. ... (file: [637be3e1] check-in: [0cbfc02b] user: stephan branch: trunk, size: 57970) | |
2021-07-17
| ||
10:48 | wikiedit: the attachment area now explains that new pages cannot have attachments until the page is saved once. ... (file: [df11f005] check-in: [70716bbc] user: stephan branch: wikiedit-attachment-list, size: 57935) | |
2021-07-16
| ||
18:15 | Added reload capability to /wikiedit attachment list. ... (file: [3756921d] check-in: [91bb602a] user: stephan branch: wikiedit-attachment-list, size: 57703) | |
16:51 | Initial work on attachment list for /wikiedit. Still requires the ability to update the list to see attachments made since edits were last locally loaded and stashed. ... (file: [7886c849] check-in: [74c6b9c5] user: stephan branch: wikiedit-attachment-list, size: 56681) | |
2020-09-19
| ||
12:45 | Squelched an ominous but harmless error from wikedit when opened with a sandbox page name using any case other than 'Sandbox'. ... (file: [ec95d733] check-in: [2e828971] user: stephan branch: trunk, size: 54625) | |
2020-09-18
| ||
09:21 | Fixed a preview quirk which caused the pikchr click handlers to not get processed on wikiedit/fileedit previews after the first one. ... (file: [4092a90b] check-in: [052d3748] user: stephan branch: trunk, size: 54599) | |
2020-09-16
| ||
08:04 | 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 :). ... (file: [164ec7ae] check-in: [a1838297] user: stephan branch: trunk, size: 54458) | |
2020-09-15
| ||
16:40 | fossil.pikchr.addSrcView() now tags each processed SVG element to avoid potentially processing the same one multiple times. Added fossil.pikchr support to /doc, /wiki, and /wikiedit/fileedit previews. This is harmless if there are no pikchrs or JS is disabled. ... (file: [a3122b6c] check-in: [83f03e91] user: stephan branch: trunk, size: 53126) | |
2020-09-12
| ||
12:21 | Milestone: eliminated the remaining assign-to-DOMElement.innerHTML in the fossil.*.js APIs (ostensible security enhancement), thanks to the DOMParser interface. Fixed an obscure minor bug in /fileedit where a commit message which contained HTML tags could cause the page to misbehave if the 'response manifest' debugging option was turned on. ... (file: [1f81b2ac] check-in: [79023c92] user: stephan branch: trunk, size: 53084) | |
09:47 | Minor improvements in fossil.dom and touchups in code which can make use of them. Found a way around using innerHTML assignment for rendering pikchr content. (TODO: genericize that and apply it to wikiedit/fileedit previews.) ... (file: [4daefd66] check-in: [74791f88] user: stephan branch: trunk, size: 53056) | |
2020-08-30
| ||
18:32 | Code duplication reduction. ... (file: [f1cd4f8d] check-in: [f107854c] user: stephan branch: wikiedit-wysiwyg-legacy, size: 53016) | |
2020-08-29
| ||
14:07 | Plugged a leaky abstraction in wikiedit and fileedit which applied when connecting a 3rd-party editor widget and added an example of how to plug in TinyMCE to the fileedit docs. ... (file: [32375760] check-in: [88703f00] user: stephan branch: trunk, size: 53092) | |
2020-08-25
| ||
06:18 | Lots of tweaking to the "help buttonlet" popup position. Something to improve some rainy day. ... (file: [6b19f9a0] check-in: [3f08a9d2] user: stephan branch: misc-js-experiments, size: 52213) | |
2020-08-24
| ||
22:20 | Moved C routines which emit fossil.XYZ JS APIs from style.c to builtin.c, and renamed appropriately. Added flag to output_text_with_line_numbers() to disable emit of JS (needed for fileedit preview, at a minimum). The experimental emitting of all fossil.XYZ APIs at once is now limited to bundled mode, as that's the only place it's potentially of benefit. ... (file: [0efa0050] check-in: [c515e5fd] user: stephan branch: misc-js-experiments, size: 52281) | |
20:49 | Experimentally added '?' help buttons in wikiedit. Experimentally emit all fossil.XYZ APIs, rather than selected ones, to test whether that reduces overall transmission together with caching. DOM init-time timing workarounds to get confirmer buttons to pin their sizes properly. ... (file: [57c79291] check-in: [9edbb7ea] user: stephan branch: misc-js-experiments, size: 52303) | |
2020-08-20
| ||
22:40 | Using parameters to namespace functions in fossil*.js instead of the global "fossil" object. Squishes a complaint by GCC and makes the code a smidge smaller besides. ... (file: [d20ca899] check-in: [0f03f78a] user: wyoung branch: trunk, size: 51549) | |
2020-08-13
| ||
11:49 | Re-enabled the discard-all-edits button in wikiedit and made it look the same in both wikiedit and fileedit. ... (file: [0094f313] check-in: [39a5289b] user: stephan branch: trunk, size: 51559) | |
2020-08-12
| ||
11:44 | Minor style consistency/layout tweaks to wikiedit and fileedit. ... (file: [f8714752] check-in: [e7c348f1] user: stephan branch: trunk, size: 51088) | |
2020-08-11
| ||
15:55 | wikiedit: changing the page's mimetype now also marks the page as is-dirty, enabling a save. ... (file: [2ee35295] check-in: [98fa23f9] user: stephan branch: trunk, size: 51106) | |
15:39 | wikiedit: now uses fossil.confirmer pinSize option on confirmer buttons. Save button is no longer re-labeled during save to avoid layout reflow. Save button is now always enabled and attempting to save when there are no edits triggers an error message. ... (file: [64ae6638] check-in: [f94a5538] user: stephan branch: trunk, size: 51038) | |
2020-08-10
| ||
17:38 | Added a 'Save and Close' button to wikiedit. Cleaned up the styling and wrapping of the status/links menu bars in fileedit and wikiedit. Minor style tweaks to get input field borders to appear in the default skin on Chromium. ... (file: [aff1bd81] check-in: [3814c9ff] user: stephan branch: trunk, size: 51346) | |
2020-08-08
| ||
18:52 | wikiedit: deleted pages are now hidden by default, per forum feedback. A minor style tweek to shift edit-marked wiki entries to the right a bit (edit state indicator was truncated in some skins). ... (file: [a60f247b] check-in: [8936ae98] user: stephan branch: trunk, size: 50288) | |
17:43 | Disabled wikiedit save confirmation, by popular demand. (Discard/reload still requires confirmation due to the risk of data loss.) Added link to /wiki/PageName to the per-page links. ... (file: [68261e5f] check-in: [8635cb3d] user: stephan branch: trunk, size: 50240) | |
12:41 | wikiedit now relabels the Save button while save is in progress, per forum feedback. ... (file: [01431429] check-in: [9f3747d8] user: stephan branch: trunk, size: 49482) | |
11:29 | /wikiedit now marks "deleted" (empty) pages and offers a filter to show/hide them. ... (file: [2d92d47f] check-in: [424baf1e] user: stephan branch: trunk, size: 48733) | |
2020-08-04
| ||
14:00 | /wikiedit now embeds a copy of the page list JSON at page-render time to save an XHR request at startup. ... (file: [8989f44b] check-in: [bc665133] user: stephan branch: trunk, size: 45645) | |
2020-08-01
| ||
23:38 | fossil.message() and friends now use local timestamps instead of UTC. Fixed a bug in wikiedit which caused a newly-created page to disappear from the page selection list after it was saved. Other minor cleanups in adjacent code. ... (file: [07a099e6] check-in: [3dc4613d] user: stephan branch: trunk, size: 45432) | |
21:31 | Ported several features between wikiedit and fileedit, improving them both a bit. ... (file: [95cd0f91] check-in: [0d5006be] user: stephan branch: trunk, size: 45206) | |
17:56 | Style tweaks and re-did how the OPTION elements are marked is-new/is-modified so that the mobile browsers can show that state. ... (file: [0e722fa0] check-in: [d9f4b6db] user: stephan branch: trunk, size: 40533) | |
16:07 | Reworked how /wikiedit edit status is displayed, added history/attachment links to the new info bar, and remove attachment links from the Help tab. ... (file: [b7f6addf] check-in: [fb77abd3] user: stephan branch: trunk, size: 39282) | |
13:53 | Merged in the Ajax-based /wikiedit reimplementation. ... (file: [258ce89a] check-in: [19f27535] user: stephan branch: trunk, size: 39321) | |
2020-07-31
| ||
14:44 | /wikiedit and /fileedit now dump all of their common static JS into a single SCRIPT tag instead of making numerous requests, per forum feedback. Fixed/expanded some of the newer script-emitting logic in style.c to handle these. wikiedit no longer mangles the page-level header. ... (file: [eb660e4b] check-in: [a4b73fd0] user: stephan branch: ajax-wiki-editor, size: 39214) | |
09:57 | The save button now is now moved to the current tab when switching tabs, for the save/preview/diff tabs. ... (file: [b5d90cc9] check-in: [acdd7653] user: stephan branch: ajax-wiki-editor, size: 39219) | |
05:14 | Minimize the FOUC effect before the tabs are re-assembed in JS by initially hiding all tabs. ... (file: [b29120e7] check-in: [d8f18bc5] user: stephan branch: ajax-wiki-editor, size: 38788) | |
04:46 | Corrected sandbox page always getting tagged as 'new' in the page header and title. ... (file: [8f79ee94] check-in: [c3c9a143] user: stephan branch: ajax-wiki-editor, size: 38779) | |
04:33 | Moved Save button to the Preview tab, as that follows the common app-wide pattern of not enabling a save until a preview has first been triggered. ... (file: [e83f8e9d] check-in: [31296ec2] user: stephan branch: ajax-wiki-editor, size: 38752) | |
03:50 | Can now create new pages without leaving the editor. Numerous layout tweaks. Improved the help tab. ... (file: [b543c61e] check-in: [d5e4d7a9] user: stephan branch: ajax-wiki-editor, size: 38481) | |
02:02 | Renamed the fileedit/wikiedit stash index keys to avoid breakage if they edit a file/page named 'index' (this unfortunately invalidates any local-storage edits in /fileedit). Minor wiki page selection list style tweak. ... (file: [88037cfb] check-in: [8975f724] user: stephan branch: ajax-wiki-editor, size: 34867) | |
01:44 | Minor layout/style improvements. ... (file: [3c85c39e] check-in: [31c5e1fd] user: stephan branch: ajax-wiki-editor, size: 34867) | |
01:31 | Moved the hard-coded edit state markers to fossil.page.config so that skins can change them. ... (file: [1132cc9f] check-in: [4c1a2dd4] user: stephan branch: ajax-wiki-editor, size: 35003) | |
01:09 | Added filter checkboxes to show/hide to filter the wiki page list by page type(s). Related internal API additions. ... (file: [1788dfb6] check-in: [9edf5e7d] user: stephan branch: ajax-wiki-editor, size: 34573) | |
2020-07-30
| ||
23:30 | Added links to the wiki page's add-attachment and list-attachment pages. ... (file: [14328413] check-in: [01ab9241] user: stephan branch: ajax-wiki-editor, size: 32156) | |
22:02 | Implemented wiki page saving. Corrected order of the versions in the diff. Various cleanups. ... (file: [83531df6] check-in: [63376a80] user: stephan branch: ajax-wiki-editor, size: 31238) | |
19:48 | New/unsaved pages can now be discarded. ... (file: [63c80243] check-in: [2ccdf326] user: stephan branch: ajax-wiki-editor, size: 29388) | |
19:12 | Added ability to create new pages passed to the editor via /wikinew and integrated them into the local edit stash. ... (file: [8fbe8eab] check-in: [7894674d] user: stephan branch: ajax-wiki-editor, size: 28328) | |
01:45 | Permissions checks improvements. Added a couple TODOs, notably for how to integrate handling of new/as-yet-unsaved pages into the UI. ... (file: [9bbacf0d] check-in: [044e2b55] user: stephan branch: ajax-wiki-editor, size: 26213) | |
00:05 | All major features except saving are implemented. ... (file: [5b7b2716] check-in: [5d61cec5] user: stephan branch: ajax-wiki-editor, size: 26180) | |
2020-07-29
| ||
20:19 | Initial bits for the ajax-powered wiki editor. There's still much to do here, but most of the basics are in place. ... (file: [2454aa62] check-in: [20636c93] user: stephan branch: ajax-wiki-editor, size: 23538) | |