Demos: Fix text selection in "View Source" popup code view

Fixes gh-7856
Closes gh-7858