If "element.childNodes" is empty, "element.tagName" cause "TypeError: Cannot read property 'tagName' of undefined". This problem may occurs in clicking "insert image" button or "insert table" button, when textarea is empty. (Mac OSX 10.9.4, Chrome 35.0.1916.153)
Heading formatting was using the 'FormatBlock' command for msie and opera only but webkit in my test does not support the 'heading' alternative. Ternary operator on h1 h2 and h3 buttons was changed to only use 'heading' for Firefox and 'FormatBlock' for all other browsers.
…ported with metaKey
Need to pass jWysiwyg object through to fileManager. Also adding handling for baseUrl so that full url is returned.