mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
18358: Merged DEV_TEMPORARY to V3.2 18177 & 18342: ETHREEOH-3979: Web Forms: Inline images within TinyMCE controls aren't displayed correctly git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18359 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -213,7 +213,8 @@ public class XFormsProcessor implements FormProcessor
|
|||||||
js.append("alfresco.constants.AVM_WEBAPP_URL = '");
|
js.append("alfresco.constants.AVM_WEBAPP_URL = '");
|
||||||
if (avmWebApp != null)
|
if (avmWebApp != null)
|
||||||
{
|
{
|
||||||
String storeName = avmBrowseBean.getSandbox();
|
//Use preview store because when user upload image it appears in preview, not in main store.
|
||||||
|
String storeName = AVMUtil.getCorrespondingPreviewStoreName(avmBrowseBean.getSandbox());
|
||||||
if (storeName != null)
|
if (storeName != null)
|
||||||
{
|
{
|
||||||
js.append(JavaScriptUtils.javaScriptEscape(fc.getExternalContext().getRequestContextPath() + "/wcs/api/path/content/avm/" +
|
js.append(JavaScriptUtils.javaScriptEscape(fc.getExternalContext().getRequestContextPath() + "/wcs/api/path/content/avm/" +
|
||||||
|
@@ -41,7 +41,8 @@ function alfresco_TinyMCE_urlconverter_callback(href, element, onsave)
|
|||||||
{
|
{
|
||||||
if (href.startsWith(alfresco.constants.AVM_WEBAPP_URL))
|
if (href.startsWith(alfresco.constants.AVM_WEBAPP_URL))
|
||||||
{
|
{
|
||||||
result = href.substring(alfresco.constants.AVM_WEBAPP_URL.length);
|
//do nothin. AVM_WEBAPP_URL will be removed during saving image in _tinyMCE_blurHandler
|
||||||
|
result = href;
|
||||||
}
|
}
|
||||||
else if (href.startsWith("/"))
|
else if (href.startsWith("/"))
|
||||||
{
|
{
|
||||||
|
@@ -933,7 +933,7 @@ alfresco.xforms.RichTextEditor = alfresco.xforms.Widget.extend({
|
|||||||
tinyMCE.execCommand("mceAddControl", false, this.widget.id)
|
tinyMCE.execCommand("mceAddControl", false, this.widget.id)
|
||||||
var editorDocument = tinyMCE.get(this.widget.id).getDoc();
|
var editorDocument = tinyMCE.get(this.widget.id).getDoc();
|
||||||
editorDocument.widget = this;
|
editorDocument.widget = this;
|
||||||
tinymce.dom.Event.add(editorDocument,window.ie ? "beforedeactivate" : "blur",
|
tinymce.dom.Event.add(editorDocument,window.ie ? "mouseout" : "blur",
|
||||||
this._tinyMCE_blurHandler);
|
this._tinyMCE_blurHandler);
|
||||||
tinymce.dom.Event.add(editorDocument, "focus", this._tinyMCE_focusHandler);
|
tinymce.dom.Event.add(editorDocument, "focus", this._tinyMCE_focusHandler);
|
||||||
this._created = true;
|
this._created = true;
|
||||||
@@ -1052,7 +1052,7 @@ alfresco.xforms.RichTextEditor = alfresco.xforms.Widget.extend({
|
|||||||
|
|
||||||
_tinyMCE_blurHandler: function(event)
|
_tinyMCE_blurHandler: function(event)
|
||||||
{
|
{
|
||||||
if (event.type == "beforedeactivate")
|
if (event.type == "mouseout")
|
||||||
{
|
{
|
||||||
event.target = event.srcElement.ownerDocument;
|
event.target = event.srcElement.ownerDocument;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user