> > > 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/cc76e6a9-a756-4ff3-b8e5-2fbb42f891b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

