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].
> 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/4cb1112f-1f1a-4962-b728-224534551c59%40googlegroups.com.
> 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/0E15DB2F-FD06-4524-A1DD-B21FF2D5BBCF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to