mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,9 @@ if (!alfresco.log)
|
||||
alfresco.log = alfresco.constants.DEBUG ? log : Class.empty;
|
||||
}
|
||||
|
||||
//MNT-2080: AVM_WEBAPP url rendering in the html view of TinyMCE editor
|
||||
tinyMCE.avmWebappUrl = alfresco.constants.AVM_WEBAPP_URL;
|
||||
|
||||
function alfresco_TinyMCE_urlconverter_callback(href, element, onsave)
|
||||
{
|
||||
var result = null;
|
||||
@@ -47,7 +50,7 @@ function alfresco_TinyMCE_urlconverter_callback(href, element, onsave)
|
||||
}
|
||||
else if (href.startsWith("/"))
|
||||
{
|
||||
result = alfresco.constants.AVM_WEBAPP_URL + href;
|
||||
result = alfresco.constants.AVM_WEBAPP_URL + href;
|
||||
}
|
||||
else if (href.startsWith(document.location.href))
|
||||
{
|
||||
|
@@ -13,7 +13,13 @@ function onLoadInit() {
|
||||
if (tinymce.isGecko)
|
||||
document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck");
|
||||
|
||||
document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true});
|
||||
//MNT-2080: AVM_WEBAPP url rendering in the html view of TinyMCE editor
|
||||
var src = tinyMCEPopup.editor.getContent({source_view : true});
|
||||
|
||||
if (tinyMCE.avmWebappUrl != null)
|
||||
src = src.replace(new RegExp(tinyMCE.avmWebappUrl, 'g'), "");
|
||||
|
||||
document.getElementById('htmlSource').value = src;
|
||||
|
||||
if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {
|
||||
setWrap('soft');
|
||||
|
Reference in New Issue
Block a user