Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Put wrap="virtual" back in textarea Increase the height of the textarea to the height of the preview div. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | side-by-side-edit |
Files: | files | file ages | folders |
SHA1: |
ead316f3f7c88187013619e25fc898be |
User & Date: | renez 2012-04-29 13:07:13.830 |
Context
2012-04-30
| ||
09:33 | When sided by side make the text area small so it will always fit in the column. After page loaded enlarge the text area with Javascript. But leave a little room (40px) as a margin between the two columns. This insurers that side by side always succeeds. ... (Closed-Leaf check-in: 396eceb9 user: renez tags: side-by-side-edit) | |
2012-04-29
| ||
17:08 | Merge in recent trunk changes so that the branches can be more easily compared. ... (Closed-Leaf check-in: 82332148 user: drh tags: side-by-side-edit) | |
13:07 | Put wrap="virtual" back in textarea Increase the height of the textarea to the height of the preview div. ... (check-in: ead316f3 user: renez tags: side-by-side-edit) | |
11:05 | Use in cgi strncmp to circumvent Firefox adding ; charset: UTF-8; changed cols to 60 especially under windows it is to big and the result is not side-by-side ... (check-in: a7a331fa user: renez tags: side-by-side-edit) | |
Changes
Changes to src/wiki.c.
︙ | ︙ | |||
374 375 376 377 378 379 380 | } @ <form method="POST" action="%s(g.zTop)/wikiedit"> login_insert_csrf_secret(); @ <input type="hidden" name="name" value="%h(zPageName)" /> @ <div> <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" /> @ </div><input type="hidden" name="ss" value="%d(ss)" /> @ <textarea id="w" name="w" class="wikiedit" cols="60" rows="%d(n)" | | | 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 | } @ <form method="POST" action="%s(g.zTop)/wikiedit"> login_insert_csrf_secret(); @ <input type="hidden" name="name" value="%h(zPageName)" /> @ <div> <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" /> @ </div><input type="hidden" name="ss" value="%d(ss)" /> @ <textarea id="w" name="w" class="wikiedit" cols="60" rows="%d(n)" @ wrap="virtual">%h(zBody)</textarea> @ <br /> if(!ss){ @ <input type="submit" name="preview" value="Preview Your Changes" /> } @ <input type="submit" name="submit" value="Apply These Changes" /> @ <input type="submit" name="cancel" value="Cancel" /> @ </form> |
︙ | ︙ | |||
482 483 484 485 486 487 488 489 490 491 492 493 494 495 | @ if(window.isChanged){ @ window.isChanged =0 @ x.send("w="+encodeURIComponent(window.ta.value)) @ } @ setTimeout(preview,sto) @ } @ function pageLoaded(e){ @ window.isChanged =0 @ setTimeout(preview,sto) @ } @ function changed(e){ @ window.isChanged++ @ return true @ } | > > > | 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 | @ if(window.isChanged){ @ window.isChanged =0 @ x.send("w="+encodeURIComponent(window.ta.value)) @ } @ setTimeout(preview,sto) @ } @ function pageLoaded(e){ @ if( window.ta.offsetHeight<window.prvw.offsetHeight ){ @ window.ta.style.height=window.prvw.offsetHeight+"px" @ } @ window.isChanged =0 @ setTimeout(preview,sto) @ } @ function changed(e){ @ window.isChanged++ @ return true @ } |
︙ | ︙ |