17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 3999 Views |
-
Embedding video

3 June 2008 at 11:47pm
I need to use the HTML view in TinyMCE to paste in videos from MySpace, YouTube, etc., but the markup gets changed and added and then there are issues with the resultant HTML. How can I stop TinyMCE changing anything to do with embed and object tags?
I've found a couple of threads on it here, but am not having success.
Thanks.
-
Re: Embedding video

5 June 2008 at 11:10pm
Hmm, this is a shame. I was looking forward to using SS for the first time, but it looks like I'll have to use something else that doesn't fiddle with markup in the same way.
-
Re: Embedding video

5 June 2008 at 11:15pm
Theres no real way of doing this at the moment. I usually create another plain text box rather then html text then use that to embed the code for videos, js etc. Bit of a plain
-
Re: Embedding video

5 June 2008 at 11:19pm
Thanks.
Though I understand that this won't allow for custom placement in the content area?
-
Re: Embedding video

5 June 2008 at 11:34pm
Well you can be very very tricky and do something similar to http://doc.silverstripe.com/doku.php?id=recipes:customising-content-in-your-templates
So you would have 2 fields - the standard content and the new video text field (VideoText).
Then following the idea above do something like this in your Page_Controller class in Page.php (or whatever page type you need the Video)function Content() {
return str_replace('$InsertMyVideo', $this->VideoText, $this->Content);
}Then in the Normal text area you would just need to type $InsertMyVideo whereever you want the video to show. Only fault with this master plan is you can only have 1 video defined on each page at a time
-
Re: Embedding video

5 June 2008 at 11:36pm
I see. I need to enable the user to use more than one video.
Thanks for clarifying. All the best with development, and maybe I'll come back another time.
-
Re: Embedding video

2 October 2008 at 9:39pm
So I received the recent SilverStripe email which reminded me of how interested I was in this software. Is there now a way to enable HTML such as that for videos to be inserted without interference?
| 3999 Views | ||
| Go to Top | Next > |


