Awesome thank you very much! That was far different than I was expecting it would be done. It's a good thing I asked other wise I'd never have figured that one out. Now I think I have enough to work with to get everything I want figured out.
On Wednesday, June 18, 2014 11:04:42 PM UTC-7, BJ wrote: > > I've added a dropdown for you > > https://github.com/buggyj/VisualTW2Plugins/commit/77af678db6ab9b1a49f53ade0ef6b19cef23cfff > > BJ > > On Wednesday, June 18, 2014 6:41:49 PM UTC+2, Arc Acorn wrote: >> >> Thansk for the added info, but sadly since it still relies on a prompt >> and not a selection. I still have no idea where to go from here.... >> >> I'm still not very good at making a large amount of my own JS only >> modifying small to moderate portions of it. >> >> >> On Wednesday, June 18, 2014 3:15:42 AM UTC-7, BJ wrote: >>> >>> Hi Arc, >>> I added a table button - you can see what I did here >>> >>> https://github.com/buggyj/VisualTW2Plugins/commit/6a249d8018205d0f7a244d6173affe2c96933e7b >>> >>> all the best >>> >>> BJ >>> >>> On Tuesday, June 17, 2014 9:20:45 PM UTC+2, Arc Acorn wrote: >>>> >>>> Think I've mannaged to figure out that I'd need to add in an "if >>>> button.selection" command around this area but not really sure where to go >>>> from there. >>>> >>>> EditorToolbar.onCommand = function(name){ >>>> var button = EditorToolbar.buttons[name]; >>>> return function(){ >>>> var parameter = false; >>>> if (button.prompt) { >>>> var parameter = this.target.queryCommandValue(name); >>>> parameter = prompt(button.prompt,parameter); >>>> } >>>> if (parameter != null) { >>>> this.target.execCommand(name, false, parameter); >>>> EditorToolbar.onUpdateButton.call(this); >>>> } >>>> return false; >>>> } >>>> } >>>> >>>> >>>> >>>> >>>> On Tuesday, June 17, 2014 1:11:11 AM UTC-7, Arc Acorn wrote: >>>>> >>>>> Hey I was wondering if anyone knew a quick way to add a drop down >>>>> selection to EasyEdit? >>>>> https://github.com/huggyfee/VisualTW2/raw/master/VisualTW2.html >>>>> >>>>> I find myself using the exact same 15 foreground font colors all the >>>>> time, so it would be nice to just have a list rather than entering hex >>>>> codes all the time. >>>>> >>>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

