Open cogdog opened 4 years ago
With changes in TRU Writer to no longer use a secret/hidden authoring account, the "Add Media" button us not used anymore; in the editor though, you will find an Insert Image icon/button which provides the functionality to upload and insert images:
This opens the image interface, click the Upload tab to select or drag and drop the image:
It's a little bit different from the media library, and also means you are not exposing everyone else's media.
See it in action at http://splot.ca/writer/write
I realized that the edit tips linked from the editor was not updated to reflect this, now changed.
Hope this helps.
Hi Alan,
This is not referring to splotbox but rather the TRUwriter. I must be missing something here, but can you point me in the right direction, I’m trying to get the “Add Media” button to show up in the writing area for non-logged in users. Is that possible?
Thanks, Robin [A screenshot of a cell phone Description automatically generated] From: Alan Levine notifications@github.com Reply-To: cogdog/splotbox reply@reply.github.com Date: Tuesday, February 11, 2020 at 12:31 PM To: cogdog/splotbox splotbox@noreply.github.com Cc: Robin Leung robin.leung@kpu.ca, Author author@noreply.github.com Subject: Re: [cogdog/splotbox] Customizing the share page throws an error when saving (#5)
CAUTION External Sender: Do not click links or open attachments unless you recognize the sender and know the content is safe.
No that's not quite what I mean.
Think of it this way. To autoembed a YouTube URL in WordPress (where you just put a URL on a blan line and it generates the embed code), you put a URL that represents that source page of the video (not one that embeds it), e.g.
https://www.youtube.com/watch?v=JFjigsXHuyY
From that URL alone we can know it is a YouTube video.
It's embed code is:
So if I had to write my own code to take the source URL and turn it into embed code, I can see I just need to extract what comes after v= and use that to create the iframe code.
For your Kaltura video to work, you would need some kind of public URL that can pull up the video from it's source, then pull out something like an ID, then write the embed code.
Near as I can see from your page source, while this URL does display your video
https://admin.video.ubc.ca/html5/html5lib/v2.76.1/mwEmbedFrame.php/p/150/uiconf_id/23448615/entry_id/0_rsydwts9?wid=_150&iframeembed=true&playerId=kaltura_player&entry_id=0_rsydwts9&flashvars[leadWithHTML5]=true&flashvars[streamerType]=auto&flashvars[localizationCode]=en_CA&flashvars[sideBarContainer.plugin]=true&flashvars[sideBarContainer.position]=left&flashvars[sideBarContainer.clickToClose]=true&flashvars[chapters.plugin]=true&flashvars[chapters.layout]=vertical&flashvars[chapters.thumbnailRotator]=false&flashvars[streamSelector.plugin]=true&flashvars[EmbedPlayer.SpinnerTarget]=videoHolder&flashvars[dualScreen.plugin]=true&flashvars[hotspots.plugin]=1&flashvars[Kaltura.addCrossoriginToIframe]=true&wid=0_37jc5549https://admin.video.ubc.ca/html5/html5lib/v2.76.1/mwEmbedFrame.php/p/150/uiconf_id/23448615/entry_id/0_rsydwts9?wid=_150&iframeembed=true&playerId=kaltura_player&entry_id=0_rsydwts9&flashvars%5BleadWithHTML5%5D=true&flashvars%5BstreamerType%5D=auto&flashvars%5BlocalizationCode%5D=en_CA&flashvars%5BsideBarContainer.plugin%5D=true&flashvars%5BsideBarContainer.position%5D=left&flashvars%5BsideBarContainer.clickToClose%5D=true&flashvars%5Bchapters.plugin%5D=true&flashvars%5Bchapters.layout%5D=vertical&flashvars%5Bchapters.thumbnailRotator%5D=false&flashvars%5BstreamSelector.plugin%5D=true&flashvars%5BEmbedPlayer.SpinnerTarget%5D=videoHolder&flashvars%5BdualScreen.plugin%5D=true&flashvars%5Bhotspots.plugin%5D=1&flashvars%5BKaltura.addCrossoriginToIframe%5D=true&wid=0_37jc5549
That would never be a URL you can use easily to paste in as a source.
It's nit impossible, but would depend on knowing (a) what kind of URL a user would use to represent the video and (b) what the embed code needs to look like. If its a local instance, there is likely some part of that first URL that could be used to say for sure that it is your hosts Kaltura.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/cogdog/splotbox/issues/5?email_source=notifications&email_token=AB75MA64YBJPPSKNCNYQBK3RCMDJJA5CNFSM4KRGJ77KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELN6NTI#issuecomment-584836813, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB75MA7EJJOSWPVRE6MV6PTRCMDJJANCNFSM4KRGJ77A.
Originally posted by @robinleung in https://github.com/cogdog/splotbox/issues/5#issuecomment-642974495