Archive for the ‘Uncategorized’ Category

box-sizing: border-box in IE8 will not work with min-height or min-width attributes

April 16, 2015

Surprisingly sparsely documented online.

Annoying #8203; aka u200B aka ZWSP in Sharepoint 2013 HTML Editor

November 5, 2014

The Rich text editor in Sharepoint 2013 inserts “zero width spacing” characters when editing HTML. Unfortunately, these are not visible to the normal user and so is difficult to remove, so much for WYSIWYG!

Below is a Javascript snippet that will remove all instances of the character in the HTML field’s editable region. I’m not sure why the characters are inserted in the first place, so use with caution.

//I insert this script in the <head> after <SharePoint:ScriptLink language="javascript" name="core.js"
//OnDemand="true" runat="server" Localizable="false" />
EnsureScript('SP.UI.RTE.js', typeof (RTE), function () {
// Removes ​ZWSP characters
if (RTE.Cursor.update == undefined)
try {
var update_orig = RTE.Cursor.update;
RTE.Cursor.update = function () {
var range = RTE.Cursor.get_range();
if (range.isValid()) {
var editorElement = RTE.Canvas.getEditableRegion(range.parentElement());
if (editorElement && editorElement.innerHTML) {
editorElement.innerHTML = editorElement.innerHTML.replace(/\u200B/g, "");

} catch (e) {
console.log(“RTE override error”, e);

Sharepoint web services with AJAX – Anonymous access – 401 error

April 5, 2011

Just had to publicise this article by Marc

If you get a 401 authentication error when calling a Sharepoint web service for a read only operation, this will fix it!

XSLT Tip: Need to see the XML that you are transforming?

January 14, 2010

Need to see the XML that you are transforming?

<textarea style=”height:500px; height:500px;”>

<xsl:copy-of select=”*” />