@Saq - as noted previously; thank you for your support! https://saqimtiaz.github.io/sq-tw/editormagic-poc.html > <https://www.google.com/url?q=https%3A%2F%2Fsaqimtiaz.github.io%2Fsq-tw%2Feditormagic-poc.html&sa=D&sntz=1&usg=AFQjCNGTm_PVMDJvlE4WAKZFm7ImI7yvEg> >
You get full access to variables like currentTiddler; there are > improvements that let you know exactly where the text caret is, so you can > ignore text before or after, and I tweaked your popup code so that it > doesn't give multiple results if there are multiple unclosed link brackets > .... amongst other things. > How anyone can throw together that in 30 minutes is astonishing, to say the least. And you've immediately grasped some of the big struggles I've had/have. [...] if you have unfinished links that can cause some issues, and it will > only in textareas/inputs where it has been setup to work. Do you refer to what I see in you $:/core/modules/widgets/action-popupcaret - i.e the reference to Snowgoons cursor-position.js ? If yes, I'm assuming this is why the default text editor is changed. Does this mean the solution cannot work with the regular text editor? I'm hoping EditorMagic can eventually become a plugin that people can rely on and not cause problem in core updates. Still lots more room for improvement, like only showing a popup if the > triggers are found, rather than showing an empty popup (not visible) if > there are no trigger matches. > You're absolutely right but if I have any forte it would be css - or, rather, *patience *with css - so that's the only way I figured out how to control show or not without js. If you have better solutions, I'd be more than happy to see them ;-) Actually - I have no idea what to do next in this, mostly because of limits in what wikitext can do since I don't know JS. A long time ago I posted gh request for popups via custom strings <https://github.com/Jermolene/TiddlyWiki5/issues/3784> exactly because it is beyond wikitext, and because I think such a mechanism would enable a lot of things for wikitext coders i.e to focus on the popup *content.* From your demo, you seem to have created a solution for this so do you think you could generalize it into a plugin? For one thing, I note that you announced a floating editor toolbar <https://groups.google.com/forum/#!topic/tiddlywiki/1oFNPGtQj3c> - well done!!! - which seems to also use a popup mechanism so it is clear that there are use cases. Sorry if I'm a bit incoherent. EditorMagic, or something like it, still doesn't exist but I have no idea what I can do as a next step. <:-) -- 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/94c9d912-9886-4845-8857-e2bd65738edfo%40googlegroups.com.
