Folks,
Given the Caret questions in the dev forums I thought it timely to ask
another question on this.
It has often being asked with a view mode "click to edit" if the cursor
could be placed in the editor in the same location as one clicked.
- Unfortunately this usually misses the fact that much of the display
can be rendered and not necessarily existing inside the tiddler (eg was
transcluded)
I have recently made a "*smart*" showcode view and with help its wrapped in
a button and we can click to edit a display of code.
- Why smart?
- It users a range of factors if the code should be displayed by
default.
- Whether code is displayed can be overridden without touching the
tiddler in question eg shadow tiddler.
- In the case of displaying code the click position should readily map
to a position in the editor since no wikitext rendering is one code display.
*So the question is!*
At least in the case of clicking on code, displayed as it is, in a raw
form. Can we capture the click position and place the cursor at that
position in edit mode?
I have no understanding of the methods for this but It would make coding
tiddlywikis much easier, at present editing a complex macro can involve a
lot of scanning to locate places to make changes, and unfortunately once
you edit you have to do it again.
Thanks
Tony
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/0a52c941-106a-403a-8836-169209d68bcbo%40googlegroups.com.