How to make the editor in sharepoint publish a video

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.