In Sharepoint2007, no matter whether it is discussion or blog, if you want to send a video, it won't work! [At least I can't do it here. I don't know if I have another settings]
Let's send a video in the editor that comes with SharePoint. You only need to copy the JS file written by others. That's easy! If you are interested, you can study his JS.
JS source code:
Expand source code // Extended RTE 1.2 for SharePoint // Created By Boris Gomiunik // Please visit my Blog to find more tricks for SharePoint: http://boris.gomiunik.net // More info about ERTE on http://boris.gomiunik.net/erte // Project posted on CodePlex -- http://www.codeplex.com/erte // Settings: // imagePath-enter the RTE Toolbar button icon if location is different than the one below var imagePath = "/_ cat Alogs/masterpage/erte.gif "// Localization arrays. to localize, copy the line below and change the LCID. var erte1033 = new Array ("Please input details", "Alt Text", "This will be displayed in RSS feeds", "Embed Code", "Paste your Embed code here ", "Insert", "Close"); // english var erte1060 = new Array ("Vnesite parametre", "Besedilo", "Besedilo bo izpisano v RSS-viru ", "Embed koda", "prisponite Embe D kodo v polje "," Vstavi "," Zapri "); // english var erte1036 = new Array (" Parametres de configuration "," Texte de remplacement ", "Ce texte sera affiche dans le flux RSS a la place de l' objet insere. "," Code Embed "," Coller le code HTML de l'object ici. "," Inserer "," Fermer "); // French-thanks to Slash71/* ------------- No need to edit below this line ---------------- * // set the language. if there Is no localization array available, use english as default if (window ['erte' + L_Menu_LCID]) {erte_lang = window ['erte' + L_Menu_LCID];} else {erte_lang = window ['erte1033']} // this is the function that generates the "Insert Flash" dialog. function embedFlash (gb_whichElement) {while (gb_whichElement.id.indexOf ('_ toolbar') =-1) {gb_whichElement = gb_whichElement.parentNode;} fieldID = gb _ WhichElement. id; fieldID = fieldID. substring (0, fieldID. indexOf ('_ toolbar'); RTE_SaveSelection (fieldID); var generator = window. open ('', 'Question ', 'height = 300, width = 300, scrollbar = no, menu = no, toolbar = no, status = no, location = no '); generator.doc ument. write ('
Usage:
To install this script:
1. upload both of the files (. js and. gif) to your masterpage folder on your root site. (http://yoursite.com/_catalogs/masterpage). use SPD open.
2. Edit the master page of your site add the following line just below the </body> tag.
<Script type = "text/javascript" src = "/_ catalogs/masterpage/erte. js"> </script>
That shoshould do it.
If this saved you from lots of problems or you earned a lot of money with this open source project, please visit my blog (http://boris.gomiunik.net/erte) and donate couple of bucks to support the future of this project.
:
Before use: You may add a video in HTML format, but after clicking OK, you will find that there is no video
When used, multiple buttons are found.
Click the red button to copy the HTML code of your video!
Now you can see the video!
Source file after use:
When developing custom sharepoint, You need to replace JavaScript with the mark in the above format!
Source file before use: Pay attention to compare the source file above
File Download
More: http://erte.codeplex.com/
Related Articles: Use the text editor that comes with sharepoint