Hi Mark and Jeremy, That's good to know. So the loss of that functionality is kind of a problem.
What I've been trying to do is make tiddlers such that the size of the tiddler can be fixed (or manually resized) and the textarea will fill the remaining space with overflow-y set to auto. That is to say, the iframe fills the remaining space (using flex). The issue I've been running into with this is that if the textarea is in an iframe, whenever I click into the textarea or keypress in it, the textarea scrolls to the top. This seems to be some kind of bug with iframes. I've dodged this issue just by using a textarea instead, but I haven't been sure what I'm losing in giving up the iframe. Any ideas how to sidestep this issue while still using an iframe? Best wishes, Adam On Wednesday, January 2, 2019 at 7:02:31 PM UTC, Jeremy Ruston wrote: > > Hi Adam > > The iframe was added around the textarea when we added the toolbar buttons > because otherwise clicking on a button will remove any active selection > from the textarea as a side effect of removing focus. > > There are some other ways to work around the same problem, notably using a > contenteditable DIV instead of a textarea, but the other approaches sadly > have their own problems too. > > In terms of styling, the framed editor renders an invisible textarea with > the class specified in the "class" attribute and one by one copies the > active styles from that template. Thus, one can usually target that > invisible textarea with a CSS declaration referencing > "textarea.tc-edit-texteditor". > > Best wishes > > Jeremy > > I *think* that it has to something to do with the edit buttons. I believe > the iframe came in at the same time as the edit buttons. I could be very > wrong, of course ;-) > > On Wednesday, January 2, 2019 at 10:23:56 AM UTC-7, AdamS wrote: >> >> Hi all, >> >> I'm just wondering why the tiddler text editor uses as iframe instead of >> a textarea by default. The iframe make styling the embedded textarea >> somewhat tricky. Interested to know what advantages the iframe confers that >> I will miss out on by changing the edit tiddler template. >> >> Best wishes, >> >> Adam >> > -- > 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] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > 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/4cb1112f-1f1a-4962-b728-224534551c59%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/4cb1112f-1f1a-4962-b728-224534551c59%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- 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/4296256c-f9ed-4e4f-813f-526e00de3df3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

