Folks, Surely we should ensure anything that may be styled, can be styled. I would like to see a way to introduce a style to any tiddlers elements via a field name.
Also, I have used the style if tagged mechanism, but style if a fieldname exists would help as well. Regards Tony On Tuesday, January 30, 2018 at 6:45:20 AM UTC+11, Ton Gerner wrote: > > >> The reason that custom fonts doesn’t work with the editor toolbar is >> because of the way that it creates the textarea element within an embedded >> iframe (this is done so that the selection in the textarea isn’t lost when >> the user clicks on a toolbar button and the textarea loses focus). >> >> The iframe doesn’t inherit any of the styles in the main document, so the >> code actually creates a hidden textarea and then reads back the styles, and >> then applies them to the textarea in the iframe. That means that any >> formatting applied to the textarea will be faithfully reproduced within the >> iframe. However, it only works for CSS properties applied directly to the >> textarea; it doesn’t transfer fonts, animations or other resources that can >> be defined in CSS. >> > > Thanks for the explanation. > > (The code is here: >> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/editor/engines/framed.js >> ) >> > > I believe you, I am not a programmer ;-) > > We could update things so that special stylesheets identified by a new >> system tag such as $:/tags/Stylesheet/FramedEditor would be automatically >> inserted within the iframe. >> > > h0p3 would be happy, but AFAIK an issue like this was never mentioned in > the group before. > > Cheers, > > Ton > > -- 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/5a89610c-9d9c-4722-b48f-8039b144708e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

