annotate bns_website/static/js/tinymce/examples/simple.html @ 60:a0d3bc630ebd

For issue #8, create a videos application to randomize videos in the playlist. This commit now adds a dependency to the Google Python GData library. The admin enters a playlist URL in the admin. Then the admin uses an admin action to synchronize the playlist with YouTube. This reads the playlist title and retrieves the video list from YouTube. The view function reads all the playlist objects to get the complete list of videos, then shuffles them up. The template generates Javascript to create a YouTube player with the shuffled list. A fixture is included for convenience and for the tests. I also committed a test tool I wrote to prove out this idea in case it is useful for future enhancements or experimentation.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 14:19:00 -0600
parents ced908af601a
children
rev   line source
bgneal@29 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
bgneal@29 2 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@29 3 <head>
bgneal@29 4 <title>Simple theme example</title>
bgneal@29 5
bgneal@29 6 <!-- TinyMCE -->
bgneal@29 7 <script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
bgneal@29 8 <script type="text/javascript">
bgneal@29 9 tinyMCE.init({
bgneal@29 10 mode : "textareas",
bgneal@29 11 theme : "simple"
bgneal@29 12 });
bgneal@29 13 </script>
bgneal@29 14 <!-- /TinyMCE -->
bgneal@29 15
bgneal@29 16 </head>
bgneal@29 17 <body>
bgneal@29 18
bgneal@29 19 <form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true">
bgneal@29 20 <h3>Simple theme example</h3>
bgneal@29 21
bgneal@29 22 <p>
bgneal@29 23 This page shows you the simple theme and it's core functionality you can extend it by changing the code use the advanced theme if you need to configure/add more buttons etc.
bgneal@29 24 There are more examples on how to use TinyMCE in the <a href="http://tinymce.moxiecode.com/examples/">Wiki</a>.
bgneal@29 25 </p>
bgneal@29 26
bgneal@29 27 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
bgneal@29 28 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
bgneal@29 29 &lt;p&gt;
bgneal@29 30 This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
bgneal@29 31 &lt;/p&gt;
bgneal@29 32 &lt;p&gt;
bgneal@29 33 Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
bgneal@29 34 &lt;/p&gt;
bgneal@29 35 </textarea>
bgneal@29 36
bgneal@29 37 <br />
bgneal@29 38 <input type="submit" name="save" value="Submit" />
bgneal@29 39 <input type="reset" name="reset" value="Reset" />
bgneal@29 40 </form>
bgneal@29 41 <script type="text/javascript">
bgneal@29 42 if (document.location.protocol == 'file:') {
bgneal@29 43 alert("The examples might not work properly on the local file system due to security settings in your browser. Please use a real webserver.");
bgneal@29 44 }
bgneal@29 45 </script>
bgneal@29 46 </body>
bgneal@29 47 </html>