Deployment of ERTE

July 30th, 2008 | Categories: ERTE, JavaScript, SharePoint | Tags:

There were some questions about how to deploy the ERTE solution that I’ve prepared on Codeplex (for inserting embeddable content to SharePoint Enhanced Rich Text Field). So I’ve prepared a video on how to deploy it.
 

Oznake ponudnika Technorati: ,,,
  1. Jose Antonio
    July 30th, 2008 at 23:11
    Reply | Quote | #1

    Hi Boris,
    just as a suggestion: I think you should include a “phrase” or texts that makes more easy to find the ERTE solution.
    SOmething like: “ERTE the solution for embeding flash video into a SharePoint site”. Otherwise will be difficult to find.

    Good luck and congratulations for the initiative.

    Other tip: send a newsletter for all Small Business Specialists in SLO. I can post something for all PALS… just make me remember :)

  2. Michael Gannotti
    August 8th, 2008 at 19:42
    Reply | Quote | #2

    Boris you flipping flat out ROCK!!!!!!!!
    Just tried on a test subsite and worked like a charm. :-)

  3. Michael Gannotti
    August 8th, 2008 at 23:14
    Reply | Quote | #3
  4. Slash71
    August 23rd, 2008 at 02:30
    Reply | Quote | #4

    Boris,

    This is certainly the most useful CodePlex SharePoint project of the past few years, so THANK YOU man! I’ve been frustrated for so long by Microsoft inability to offer video embedding in blog, which is an absolute basic need for good blogging platforms!

  5. Slash71
    August 25th, 2008 at 15:49
    Reply | Quote | #5

    Boris – ERTE works great on IE7, but it doesn’t render on IE6. The icon and the pop-up work great, but the embedded video (or whatever I insert) doesn’t display on IE6. Is this a known issue?

  6. Boris Gomiunik
    August 25th, 2008 at 21:17
    Reply | Quote | #6

    Hi, Slash71!

    First thanks for the great comment. If you're embedding code from youtube, one proffessor that I was working with was having the same problem. He discovered that by omitting the <object>, <param>… tags and leaving only <embed&gz; code it worked. I'll note this as a bug for fixing in the CodePlex. Thank you for the feedback!

  7. September 10th, 2008 at 16:06
    Reply | Quote | #7

    This friggin ROCKS! I tried to donate but PayPal threw an error – check your donate link…

  8. Boris Gomiunik
    September 10th, 2008 at 19:04
    Reply | Quote | #8

    David, Thanks for the cool comment and for pointing the error with donate button!

  9. Slash71
    September 23rd, 2008 at 20:41
    Reply | Quote | #9

    (I did post these two comments on your old blog)
    Here is the French version. Not sure where you want to put it, so I’ll just go ahead and insert it here:

    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

  10. Slash71
    September 23rd, 2008 at 20:41

    I had no luck inserting Google Docs Gadgets. More specifically, here’s what I tried:
    - Create a Google Docs Spreadsheet
    - insert a visualization plugin (e.g. a simple chart)
    - click on the upper right corner of the plugin, select Publish Gadget
    - Google will offer a script… /script code to insert in an HTML page.

  11. Boris Gomiunik
    September 29th, 2008 at 18:24

    Hi, Slash71. I’m sorry that I couldn’t answer before. I’m quite busy with creating a new project that involves Live services. Anyway – thanks for posting the french translation. You’re the first contributor to this open source project!

    As for javascript code – yes, unfortunately the code can’t be run with ERTE, since the script is being executed while being loaded and inserting script afterwards doesn’t run it. I’m sure there can be a workaround for this issue also, but right now I can’t rememer any. Thanks for pointing the issue out!

  12. Slash71
    October 29th, 2008 at 19:22

    Actually I did post a solution on CodePlex. Here’s a copy/paste:

    With IE6 you can’t be certain that the javascript you add at the end of your HTML will load AFTER the content is loaded. That’s why results are unstable on IE6. Fortunately SharePoint offers an array named _spBodyOnLoadFunctionNames where you can push your Javascript functions and have the certitude it will be executed AFTER the page is loaded.

    Boris – the fix is quite easy. Modify the js so instead of:

    /* — This part here adds the button — */

    objekty = document.getElementsByTagName(‘table’);
    for (i=0;i<objekty.length;i++) {
    if (objekty[i].className == ‘ms-rtetoolbarmenu ms-long’ && objekty[i].childNodes[0].childNodes.length == 2) {
    var newCell = objekty[i].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].insertCell();
    newCell.innerHTML = ‘
    }
    }

    /* — This part will make the function — */
    objekty = document.getElementsByTagName(’span’);
    for (i=0;i<objekty.length;i++) {
    if (objekty[i].className == ‘erte_embed’) {
    objekty[i].innerHTML = unescape(objekty[i].id);
    }
    }

    use:

    _spBodyOnLoadFunctionNames.push(‘Execute_ERTE’);

    function Execute_ERTE() {
    /* — This part here adds the button — */

    objekty = document.getElementsByTagName(‘table’);
    for (i=0;i<objekty.length;i++) {
    if (objekty[i].className == ‘ms-rtetoolbarmenu ms-long’ && objekty[i].childNodes[0].childNodes.length == 2) {
    var newCell = objekty[i].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].insertCell();
    newCell.innerHTML = ‘
    }
    }

    /* — This part will make the function — */
    objekty = document.getElementsByTagName(’span’);
    for (i=0;i<objekty.length;i++) {
    if (objekty[i].className == ‘erte_embed’) {
    objekty[i].innerHTML = unescape(objekty[i].id);
    }
    }
    }

  13. Slash71
    October 29th, 2008 at 19:23

    .

  14. Boris Gomiunik
    October 31st, 2008 at 14:34

    Slash thanks for the update, this is great. I knew about spBodyOnLoadFunctionNames array, but I didn’t use it for two reasons:
    1. this array works only in SharePoint’s default master page
    2. I forgot to use it :D

    Thanks a lot for your effort, I’ll have to post your update somewhere. Lately I’ve been very ocupied with our company’s projects so I couldn’t work on ERTE.

    The best way that I’ve found ERTE working is in combination with jQuery, because it has $(document).ready() event which waits that the DOM is loaded before it executes the script. And it has much easier selection. But again I didn’t want to use the jQuery by default. I’m trying to make this script as independent as possible and as easy to deploy.

  15. March 19th, 2009 at 13:29

    Hi Boris, JUst as an FYI IE8 was released today and it breaks ERTE. The box comes up you can enter text but when you click insert you lose everything as it appears IE8 cannot handle the blank page piece.

  16. March 19th, 2009 at 17:42

    Hi, Mike. Thanks for the info!

    Looks like I'll have some work cut out for me :) The ERTE uses the same function for inserting the code as for inserting pictures. So the catch must be something in displaying.

  17. Nick Sharratt
    March 23rd, 2009 at 16:20

    You're probably ahead of this, but I've just posted a comment on this issue on the codeplex pages http://erte.codeplex.com/WorkItem/View.aspx?WorkI... – the problem seems to be in the logic in the code to pass the resulting content back into the edit text box – the posts I'd already made still display the embedded content correctly in IE8. It ends up trying to past the code into the body of the post page rather than the text input box.

  18. chris
    March 9th, 2010 at 14:58

    Hi boris

    great post but it doesn’t works with me i don’t know what i made wrong
    Does it works with sharepoint 2010 ?
    Thanks for your reply

    • Boris Gomiunik
      March 10th, 2010 at 00:03

      @chris No unfortunately it doesn’t work with SharePoint 2010. I’m looking into this issue, but my time is very limited.

  19. chris
    March 10th, 2010 at 12:28

    Ok thanks boris I will let you know if i found something.

  20. June 8th, 2010 at 03:05

    boris,

    i cannot view the video. its not loading…..i am not sure. pls help me get to it. i am having trouble editing the end of . i cannot find ‘body’ in the master page gallery. i am editing with microsoft sharepoint editor 2007

  21. Boris Gomiunik
    July 18th, 2010 at 16:13

    @amal: perhaps this direct link might help: http://www.youtube.com/watch?v=ooQvo-6mzJU&feature=player_embedded