Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
Friday, December 7, 2012
Embed youtube video in tinymce editor
You may find that you can not embed youtube video in tinymce editor.
This is due to that YouTube upgrade the embed code to iframe, for example:
<iframe width="640" height="360" src="https://www.youtube.com/embed/rwQFwS26rrE?feature=player_detailpage" frameborder="0" allowfullscreen></iframe>
By default, iframe is filter out by tinymce. To add iframe in tinymce, add
valid_elements : "iframe[src|title|width|height|allowfullscreen|frameborder]"
in tinyMCE.init as below.
tinyMCE.init({
//....other configuration, and add
valid_elements : "iframe[src|title|width|height|allowfullscreen|frameborder]"
});
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment