mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
adding support for wcm tinymce extensions to create html from web content wizard
- extracted file picker backing code into its own bean - refactoring for to extract file picker bean - refactoring to manage uploads from file picker outside of xforms context - added some language utility methods to common.js - refactored extension dialogs to deal with quirkyness of tinymce dialog codebase on IE - mostly works now and addressed bug WCM-471 - resourcifying a couple strings i missed in filepickerbean git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5675 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -283,4 +283,35 @@ function log(message)
|
||||
var logLine = log.window_.document.createElement("div");
|
||||
logLine.appendChild(log.window_.document.createTextNode(message));
|
||||
log.window_.document.body.appendChild(logLine);
|
||||
}
|
||||
}
|
||||
|
||||
if (!String.prototype.startsWith)
|
||||
{
|
||||
String.prototype.startsWith = function(s)
|
||||
{
|
||||
return this.indexOf(s) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (!Array.prototype.indexOf)
|
||||
{
|
||||
Array.prototype.indexOf = function(o)
|
||||
{
|
||||
for (var i = 0; i < this.length; i++)
|
||||
{
|
||||
if (this[i] == o)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (!Array.prototype.peek)
|
||||
{
|
||||
Array.prototype.peek = function(o)
|
||||
{
|
||||
return this[this.length - 1];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user