mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged 3.1 to HEAD
13275: updated web-client to use tinymce v3 13276: overlay display fix for when field has large content git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13585 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,7 +24,10 @@
|
||||
// This script requires tiny_mce.js, and some alfresco.constants to be
|
||||
// loaded in advance.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if (!alfresco.log)
|
||||
{
|
||||
alfresco.log = alfresco.constants.DEBUG ? log : Class.empty;
|
||||
}
|
||||
function alfresco_TinyMCE_urlconverter_callback(href, element, onsave)
|
||||
{
|
||||
var result = null;
|
||||
@@ -57,13 +60,21 @@ function alfresco_TinyMCE_urlconverter_callback(href, element, onsave)
|
||||
}
|
||||
|
||||
// dojo.debug("alfresco_TinyMCE_urlconverter_callback('" + href + "', ... , " + onsave + ") = " + result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function alfresco_TinyMCE_file_browser_callback(field_name, url, type, win)
|
||||
{
|
||||
tinyMCE.importCSS(win.document, alfresco.constants.WEBAPP_CONTEXT + "/css/xforms.css");
|
||||
//tinyMCE.loadCSS doesn't seem to work with plugins so add css manually
|
||||
//tinyMCE.activeEditor.dom.loadCSS(alfresco.constants.WEBAPP_CONTEXT + "/css/xforms.css");
|
||||
var headEl = win.document.getElementsByTagName("head")[0];
|
||||
var cssEl = win.document.createElement('link');
|
||||
cssEl.type = 'text/css';
|
||||
cssEl.rel = 'stylesheet';
|
||||
cssEl.href = alfresco.constants.WEBAPP_CONTEXT + "/css/xforms.css";
|
||||
cssEl.media = 'screen';
|
||||
headEl.appendChild(cssEl);
|
||||
|
||||
var div = win.document.createElement("div");
|
||||
div.style.width = "100%";
|
||||
div.style.height = "100%";
|
||||
|
Reference in New Issue
Block a user