@Mat: https://saqimtiaz.github.io/sq-tw/editormagic-popup.html
All tiddlers needed for the functionality are tagged $:/EditorMagic
The screenshot below (at the very end) shows which fields are set in the
state tiddler for the popup. Note that when there is no selection,
selection-end = selection-start = caret position (in characters).
When there is no selection, pre-selection is the same as pre-caret,
post-selection is the same as post-caret.
Have a look at how in the EditTemplate/Body/Editor (towards the end, just
before the translusion of your popup tiddler), we access a field from the
state tiddler to set a variable (selectionEnd) for the popup to be able to
use. You can set other fields as variables here if you need them.
<$set name="selectionEnd" filter="[<editorMagicState>get[selection-end]]"
select="0">
{{||EditorMagic/_Popup}}
</$set>
screenshot:
--
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/34acca6c-8be8-45e1-ae02-528f0ddc9135o%40googlegroups.com.