Hi Andrew

> With the new editor toolbar in the prerelease of 5.1.12, a new iframe & 
> hidden textarea are introduced for the text field so that selection can be 
> preserved. I used to be able to use 
> parentDomNode.getElementsByTagName("textarea")[0]; to get the textarea value 
> but that is changing. In developer tools I can inspect and find the value of 
> the textarea under properties under textarea under value but I can't figure 
> out how to get the value. Maybe because it's hidden? The undo and redo 
> buttons are not being included because they were not acting properly. I feel 
> that if I could capture the text after the execCommand to undo, I could 
> assign it to operation.replacement and then use the editor engine to update 
> the preview pane. Maybe then the undo and redo buttons could be added back in 
> under a plugin. Any suggestions?

You’ll need to reach into the textarea within the iframe, something like this:

parentDomNode.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("textarea")[0].value

Best wishes

Jeremy


> 
> 
> Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/6ev5pmxalgx05b7vdugl8eul.1463352713728%40email.android.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/6ev5pmxalgx05b7vdugl8eul.1463352713728%40email.android.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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/54FFB94F-AB69-45A7-AEF0-7139225A8C36%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to