- Posted by karthik on April 15, 2009
On a demo that I am trying to work on, I kept coming across this javascript error while in HTML source mode on a CEWP instance. It was annoying enough for me to go find a quick fix.
The error itself was quite vague: " Object expected: in /_layouts/RTE2PUEditor.aspx".
With the HTML editor being a modal, there was no easy way to figure out the offending source.
Googling the error description yielded some helpful links one of which mentioned a hacky fix that I promptly put in! Since this was a test box, I didn't really care about breaking the support model, but not a good idea on production boxes, period!
If you landed here looking for that fix, use the steps below to fix it quick:
1. Open up the HtmlEditor.js file underneath your layouts/1033 folder in the 12 hive C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033
2. Locate the entry for:
function RTE2_OnKeyDown(strBaseElementID, elem)
and change the following line:
RTE_ToggleEnableShortcuts(evtSource);
to:
//RTE_ToggleEnableShortcuts(evtSource);
try { RTE_ToggleEnableShortcuts(evtSource); } catch (e) {}
There you go! Do not forget to refresh (Control F5) your browser screen when you next test this as the Editor dialog may be cached. Screenshot for those looking for visuals.
Cheers!
- Posted by karthik on February 7, 2009
It has been a fun day so far..My presentation at Sharepoint Saturday went quite well and I am about to go check some feedback from my audience. I had mentioned that the presentation slides (and maby some code samples) would be posted online here, but I won't be able to get to that until early next week (Need to do some sprucing up on some slides)
If you need it in a hurry, send me an email to the address in my contact page and I will try to respond as soon as I can. (Apologies for a VERY rudimentary contact page, but am having some issues with the form submission that I hope to fix very soon!)
Thanks to all those who came today. I will post a transcript of some questions and related discussions in my next set of posts.
Enjoy the weather in KC if you are around!
- Posted by karthik on April 28, 2008
Once in a while, we have run into this message below on a MOSS internet site that seems to be not well documented as an issue or bug from what I can see googling for it.
The issue only seems to happen when users are editing a page and trying to save it back on a WCM site. Now, to be precise, the servers running MOSS do have an AV client running that inspects (i am assuming statefully) HTTP traffic passing through it and determines whether or not there is any malicious scripts running on them. After some googling around, we came to the conclusion that the JS scripts emitted by MOSS for WCM were probably triggering this off on the server albeit randomly.
If you have seen this happen and know what is causing it, shoot me an email!
- Posted by karthik on March 1, 2008
Came across this depiction of a MOSS Framework (?) structure a while ago but for the life of me cannot remember what the context was.
If this rings a bell, let me know and I will update the post to the right link reference and give credit where due
P.S: The gray portion at the bottom is what has me confused, since I don't think that mapping is necessarily accurate. Thoughts?