And yes, I have tiddlers for the classes that work fine if I type them in 
manually.

And example of one tiddler, tagged $:/tags/Stylesheet:

.blk {
        height: 20px;  
        width: 20px; 
        border-style: solid;  
        background-color: black;
        border-radius: 50%;  
        border-width: thin;
        border-color: black;  
        display: inline-block;
}




On Wednesday, June 26, 2019 at 3:43:03 PM UTC-6, Aidan Grey wrote:
>
> Heya,
>
> I'm trying to create an editor toolbar button that will add some 
> predefined html/css text, and it's not working quite right. I can't figure 
> out what I'm doing wrong. 
>
> The code:
>
> <$action-sendmessage
> $message="tm-edit-text-operation"
> $param="replace-selection"
> text="<span class="blk"></span>
> <span class="blk"></span>
> <span class="blk"></span>
> <span class="blk"></span>
> <span class="blk"></span>
> <span class="ylw"></span>
> <span class="wht"></span>
> <span class="ylw"></span>"
> />
>
> In the image attached, you'll see that I also tried escaping characters, 
> but I still have the same issue - all of the contents of the tiddler appear 
> IN the button. Further, it doesn't do anything. If I click that mess of a 
> button, nothing happens.
>
> What am I doing wrong?
>
> Thanks,
> Aidan
>
>
>
>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/347e948f-3f13-4864-9f89-ab62cf40d10d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to