[FIX] elfinder: Do the insertAt call to after the elfinder dialog has been closed - seems to stop ugly exceptions appearing in Safari, and a bit better for Chrome so far...

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@47384 b456876b-0849-0410-b77d-98878d47e9d5
[ENH] set https for link

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@47385 b456876b-0849-0410-b77d-98878d47e9d5