Is it possible to set a TextEntry to be read-only?

Aug 16, 2022

I would like to be able to set a TextEntry to be read-only.  The reason I am using a TextEntry is because it allows the user to copy the text within it when embedded within a Rise course, unlike a text box.

Is it possible to either set the TextEntry to read-only or is there some other way I can have some text whose value I can set with Javascript that allows the user to copy the contents to the clipboard?

Thank you.

1 Reply
Jürgen Schoenemeyer

here is a small javascript solution

you have to test it on rise with Chrome*, because of browser restictions of the Clipborad API in iframe

if this error happend, this would be the error message in the browser console

then Articulate has to update their storyline iframe integration in rise

<iframe src="..." allow="clipboard-read; clipboard-write; ..."></iframe>

Jürgen

* https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes