[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread @TiddlyTweeter
I forgot to mention that you could use CSS to include the SVG image, or via an HTML img too. But however that works direct inclusion of SVG code would probably work too. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread @TiddlyTweeter
I agree. And for other reasons too. Font Awesome can be useful in some narrow situations. But generally SVG is much more appropriate for what we need to do. I can't help on the specifics. SVG is not rendered via CSS, though it may use it. Its a thing in itself. SVG and TiddlyWiki are natural

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread hubertgk
Thanks, I've tried that in the meantime and it could work; too bad the plugin increases my TW's size by 300-400 kB -- not much in absolute terms but way too big a bump for a single/simple solution that I'm looking for. I will revert to fiddling with CSS for now. Thanks again for your

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread Matthew Lauber
You can get an plugin (offline) version of font awesome from here, I believe. https://github.com/TheDiveO/TW5FontAwesome/releases/tag/1.2.1 On Thursday, March 22, 2018 at 1:35:00 PM UTC-4, hubertgk wrote: > > Thanks for your suggestions. But doesn't Font Awesome require an online >

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread hubertgk
Thanks for your suggestions. But doesn't Font Awesome require an online connection in order to work? If it does then I think that the CSS route would be the way to go, if only I could get it to point to an internal SVG image. input { background-image: url(bg.jpg); background-repeat:

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread Matthew Lauber
You could also consider if any of the font-awesome icons would work for your purposes, because I believe you can use those within the placeholder field. On Thursday, March 22, 2018 at 1:17:27 PM UTC-4, Matthew Lauber wrote: > > Hey Hubert, > > I'm not sure that default html supports using a svg

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread Matthew Lauber
Hey Hubert, I'm not sure that default html supports using a svg image in the placeholder field of the input box. I'm pretty sure that this affect is typically implemented via css. Take a look at https://stackoverflow.com/questions/13761654/html5-image-icon-to-input-placeholder to see how