Deployment of ERTE
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.
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.
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
Boris you flipping flat out ROCK!!!!!!!!
Just tried on a test subsite and worked like a charm.
Just posted this vid on this. You rock!!!
http://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=1166
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!
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?
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!
This friggin ROCKS! I tried to donate but PayPal threw an error – check your donate link…
David, Thanks for the cool comment and for pointing the error with donate button!
(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
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.
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!
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);
}
}
}
.
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
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.
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.
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.
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.
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
@chris No unfortunately it doesn’t work with SharePoint 2010. I’m looking into this issue, but my time is very limited.
Ok thanks boris I will let you know if i found something.
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
@amal: perhaps this direct link might help: http://www.youtube.com/watch?v=ooQvo-6mzJU&feature=player_embedded