- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在新建的 AEM 6.3 作者服务器 (Service Pack 2) 上,RTE 组件自动将我们的作者 URL 添加到通过 Assets 选择器选择的任何 Assets 。
只有在选择 Assets 并单击“确定”后,才会在前面添加域。在单击确定之前,这里只有相对路径。
但在选择 Assets 后,可以立即从 JCR 确认该路径包含作者域。
如果您重新打开 Assets 选择器,那么前面的路径也在那里可见。
我不确定这是问题的根源,但我第一次看到在处理过程中出现绝对链接是在 Link.js 文件 (/libs/clientlibs/granite/richtext/core/js/commands/Link.js) 为标签创建一个 HTML 节点。尽管 url
是相对的,childNodes[0].href
是绝对的:
var helperSpan = context.createElement('span');
helperSpan.innerHTML = '<a href=\"' + url + '\"></a>';
attributes.href = helperSpan.childNodes[0].href;
attributes[CUI.rte.Common.HREF_ATTRIB] = helperSpan.childNodes[0].href;
在我们的作者 URL 前面显然不是我们想要的。知道为什么会发生这种情况吗?
我认为对话框不会影响任何东西,但这里有触摸对话框 XML 供引用:
<dialog xmlns:DICOM="http://ns.adobe.com/DICOM/" xmlns:ExtensisFontSense="http://www.extensis.com/meta/FontSense/" xmlns:GCamera="http://ns.google.com/photos/1.0/camera/" xmlns:GettyImagesGIFT="http://xmp.gettyimages.com/gift/1.0/" xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" xmlns:MP="http://ns.microsoft.com/photo/1.2/" xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0" xmlns:MicrosoftPhoto_1_="http://ns.microsoft.com/photo/1.0/" xmlns:Z="urn:schemas-microsoft-com:" xmlns:aas="http://ns.apple.com/adjustment-settings/1.0/" xmlns:acdsee="http://ns.acdsee.com/iptc/1.0/" xmlns:adhocwf="http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/" xmlns:adobe_dam="http://www.adobe.com/adobe_dam/1.0" xmlns:ag="http://www.acquitygroup.com" xmlns:album="http://ns.adobe.com/album/1.0/" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:apple-fi="http://ns.apple.com/faceinfo/1.0/" xmlns:attr="http://ns.swcc.com/attr/1.0/" xmlns:author="http://springernature.com/ns/xmpExtensions/2.0/authorInfo/" xmlns:bext="http://ns.adobe.com/bwf/bext/1.0/" xmlns:cc="http://creativecommons.org/ns#" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:creatorAtom="http://ns.adobe.com/creatorAtom/1.0/" xmlns:crossmark="http://crossref.org/crossmark/1.0/" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:crx="http://www.day.com/crx/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:def="http://mediabeacon.com/ns/default/1.0/" xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" xmlns:dex="http://ns.optimasc.com/dex/1.0/" xmlns:drone-dji="http://www.dji.com/drone-dji/1.0/" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:exifEX="http://cipa.jp/exif/1.0/" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:idPriv="http://ns.adobe.com/xmp/InDesign/private" xmlns:illustrator="http://ns.adobe.com/illustrator/1.0/" xmlns:jav="http://www.niso.org/schemas/jav/1.0/" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:lr="http://ns.adobe.com/lightroom/1.0/" xmlns:mb="http://brightech.com/ns/mb" xmlns:mediapro="http://ns.iview-multimedia.com/mediapro/1.0/" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:mwg-rs="http://www.metadataworkinggroup.com/schemas/regions/" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:oauth="http://oauth.net/" xmlns:panorama="http://ns.adobe.com/photoshop/1.0/panorama-profile" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" xmlns:pdfaField="http://www.aiim.org/pdfa/ns/field#" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" xmlns:pdfaType="http://www.aiim.org/pdfa/ns/type#" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/" xmlns:pdfxid="http://www.npes.org/pdfx/ns/id/" xmlns:photomechanic="http://ns.camerabits.com/photomechanic/1.0/" xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/" xmlns:plus="http://ns.useplus.org/ldf/xmp/1.0/" xmlns:pmtm="http://www.hdrsoft.com/photomatix_settings01" xmlns:prefix0="MSImagingV1" xmlns:prism="http://prismstandard.org/namespaces/basic/2.1/" xmlns:prism_1_="http://prismstandard.org/namespaces/basic/3.0/" xmlns:prismusagerights="http://prismstandard.org/namespaces/prismusagerights/2.1/" xmlns:prl="http://prismstandard.org/namespaces/prl/2.1/" xmlns:psAux="http://ns.adobe.com/exif/1.0/aux/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rep="internal" xmlns:s7sitecatalyst="http://www.day.com/s7sitecatalyst/1.0/" xmlns:s7userdata="http://www.day.com/s7userdata/1.0/" xmlns:scg="http://www.adobe.com/social/scg/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:slingevent="http://sling.apache.org/jcr/event/1.0" xmlns:sn="http://springernature.com/ns/xmpExtensions/2.0/" xmlns:social="http://www.adobe.com/social/1.0" xmlns:stArea="http://ns.adobe.com/xmp/sType/Area#" xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stFNT="http://ns.adobe.com/xap/1.0/sType/Font#" xmlns:stMfs="http://ns.adobe.com/xap/1.0/sType/ManifestItem#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:swf="http://ns.adobe.com/swf/1.0/" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:viewerpreset="http://www.day.com/viewerpreset/1.0/" xmlns:vlt="http://www.day.com/jcr/vault/1.0" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpBJ="http://ns.adobe.com/xap/1.0/bj/" xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/" xmlns:xmpG="http://ns.adobe.com/xap/1.0/g/" xmlns:xmpGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:xmpNote="http://ns.adobe.com/xmp/note/" xmlns:xmpPLUS="http://ns.adobe.com/xap/1.0/PLUS/" xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/" xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/" xmlns:xmp_1_="http://ns.abobe.com/xap/1.0/" jcr:primaryType="cq:Dialog" height="625" helpPath="en/cq/current/wcm/default_components.html#Text" xtype="dialog">
<items jcr:primaryType="cq:WidgetCollection">
<tab1 jcr:primaryType="cq:Widget" anchor="100%" title="Text" xtype="panel">
<items jcr:primaryType="cq:WidgetCollection">
<text jcr:primaryType="cq:Widget" height="500" hideLabel="true" name="./text" xtype="richtext">
<rtePlugins jcr:primaryType="nt:unstructured">
<links jcr:primaryType="nt:unstructured">
<linkDialogConfig jcr:primaryType="nt:unstructured" height="316">
<linkAttributes jcr:primaryType="cq:WidgetCollection">
<linkAdvanced jcr:primaryType="cq:Widget" collapsed="true" collapsible="true" inputValue="advanced" name="./linkdialog/cq:adhocLinkTrackingTab" title="Link tracking" xtype="dialogfieldset">
<items jcr:primaryType="cq:WidgetCollection">
<enable jcr:primaryType="nt:unstructured" attribute="enabletracking" fieldDescription="override analytics framework settings" fieldLabel="Custom link tracking" name="./linkdialog/cq:adhocLinkTrackingEnableTracking" xtype="checkbox">
<listeners jcr:primaryType="nt:unstructured" check="function(component){var dlg=component.findParentByType('rtelinkdialog');dlg.enableSCFields(component.checked);}" />
</enable>
<events jcr:primaryType="nt:unstructured" attribute="adhocevents" fieldDescription="e.g.: event2, event7" fieldLabel="Include SiteCatalyst events" name="./linkdialog/cq:adhocLinkTrackingEvents" xtype="textfield" />
<evars jcr:primaryType="nt:unstructured" attribute="adhocevars" fieldDescription="e.g.: eVar1: pagedata.url, prop4: 'const'" fieldLabel="Include SiteCatalyst variables" name="./linkdialog/cq:adhocLinkTrackingEvars" xtype="textfield" />
</items>
</linkAdvanced>
</linkAttributes>
</linkDialogConfig>
</links>
<paraformat jcr:primaryType="nt:unstructured" features="*">
<formats jcr:primaryType="cq:WidgetCollection">
<paragraph jcr:primaryType="nt:unstructured" description="paragraph" tag="p" />
<h2 jcr:primaryType="nt:unstructured" description="heading 2" tag="h2" />
<h3 jcr:primaryType="nt:unstructured" description="heading 3" tag="h3" />
<h4 jcr:primaryType="nt:unstructured" description="heading 4" tag="h4" />
<blockquote jcr:primaryType="nt:unstructured" description="quote" tag="blockquote" />
</formats>
</paraformat>
<styles jcr:primaryType="nt:unstructured" features="*">
<styles jcr:primaryType="cq:WidgetCollection">
<picLeft jcr:primaryType="nt:unstructured" cssName="float-left" text="Left Align Picture" />
<picRight jcr:primaryType="nt:unstructured" cssName="float-right" text="Right Align Picture" />
<picCenter jcr:primaryType="nt:unstructured" cssName="float-center" text="Center Align Picture" />
<button jcr:primaryType="nt:unstructured" cssName="button" text="Button" />
<largeButton jcr:primaryType="nt:unstructured" cssName="button large" text="Large Button" />
</styles>
</styles>
<edit jcr:primaryType="nt:unstructured" defaultPasteMode="wordhtml" stripHtmlTags="true" />
<justify jcr:primaryType="nt:unstructured" />
<spellcheck jcr:primaryType="nt:unstructured" features="*" />
<subsuperscript jcr:primaryType="nt:unstructured" features="*" />
<undo jcr:primaryType="nt:unstructured" features="*" />
<misctools jcr:primaryType="nt:unstructured" />
<format jcr:primaryType="nt:unstructured" />
<findreplace jcr:primaryType="nt:unstructured" features="*" />
</rtePlugins>
<htmlRules jcr:primaryType="nt:unstructured">
<docType jcr:primaryType="nt:unstructured">
<typeConfig jcr:primaryType="nt:unstructured" useSemanticMarkup="false" />
</docType>
<links jcr:primaryType="nt:unstructured">
<targetConfig jcr:primaryType="nt:unstructured" mode="none" />
</links>
</htmlRules>
</text>
<isRichTextFlag jcr:primaryType="cq:Widget" ignoreData="true" name="./textIsRich" value="true" xtype="hidden" />
</items>
</tab1>
</items>
</dialog>
最佳答案
我们使用的是 AEM Service Pack 6.3.2。安装累积服务包 6.3.3.3 解决了这个问题。
具体来说,它是对 com.adobe.granite.ui.coralui3-rte-0.0.32-CQ630-B0022 包中的 Coral RTE 组件的更新。 (“提供 RTE Core 和 Coral RTE 的 ExtJS 兼容版本作为客户端库的内容包。”)
事实证明,Link.js 文件 (libs/clientlibs/granite/richtext/core/js/commands/Link.js)确实包含我们怀疑的错误。
用于读取的代码:
var helperSpan = context.createElement('span');
helperSpan.innerHTML = '<a href=\"' + url + '\"></a>';
...
attributes[CUI.rte.Common.HREF_ATTRIB] = helperSpan.childNodes[0].href;
现在是:
var helperSpan = context.createElement('span');
helperSpan.innerHTML = '<a href=\"' + url + '\"></a>';
...
attributes[CUI.rte.Common.HREF_ATTRIB] = url;
关于AEM 的富文本 (RTE) 将作者域添加到链接之前?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54835468/
我的意思是这三个富人的论点: #{rich:clientId('id')} #{rich:element('id')} #{rich:component('id')} 例如在这些方法调用(action
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: What are the differences between pointer variable and
对于实习,我将不得不开发一个桌面应用程序。重点是创建丰富的 UI(酷炫的效果、声音等)。我应该使用哪种技术? - 闪光 ? (在这种情况下,我应该使用 flex 项目吗?AIR ?这和一个简单的 ra
关闭。这个问题需要更多 focused .它目前不接受答案。 想改进这个问题?更新问题,使其仅关注一个问题 editing this post . 7年前关闭。 Improve this questi
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 9 年前。 Improv
我想知道这一行的作用: foo || (foo = this.foo) 在下面的函数定义中 someFunction: function(foo) { foo || (foo = thi
我有一个数据模型,其中有一个 Item可以属于一个或多个 Categories .我正在尝试显示 允许用户选择哪个Categories Item应该属于。我正在使用 RichFaces 和 Seam
我意识到我大部分时间都在使用三元运算符,如下所示: foo ? foo:酒吧; 这变得很麻烦,因为变量长度变得很长,例如。克。 appModel.settings.notifications ? ap
我要做出一个设计决定。 在我的 web(ajax) 应用程序中,我们需要决定将用户界面逻辑放在哪里? 是否应该通过 javascript 完全加载(纯单页)。只有数据来来去去。 或 服务器是否应该发送
有人向我指出我在某些 C++ 代码中有一个看起来像拼写错误的地方: protected: Foo x, y,; 我原以为结尾的逗号会出错,但显然不是?这是未定义的,还是发生了什么?大概是坏事
谁能解释一下这是做什么的? var foo = foo || alert(foo); 最佳答案 如果 foo 已经被定义并且计算结果为真,它设置 foo = foo,即它什么都不做。 如果定义了 fo
看起来这应该是可能的,但是......? 使用 richfaces 和 JSF,我正在使用 rich:dataList 遍历 List ...一切都很好,除了我希望能够选择性地“呈现”每次迭代,这可能
我有以下带有 rich:calendar 的 xhtml 文件,我正试图禁用一些日子 using this example .但是永远不会调用 javascript 函数。我不知道为什么。
我的应用程序在 90% 的时间里都使用 Ajax 调用来获取后端数据。我需要为所有这些调用实现 CSRF 预防。所以我需要在每次调用时传递 token 。我在哪里生成 token ?在客户端还是服务器
我正在尝试重构和引入一些旧代码,我遇到了这样的事情: struct foo; typedef struct foo * foo; 尝试编译它时,出现以下错误: Sourc
我想使用类似 TextView 的东西进行类似串行/TTY/文本终端的同步用户交互。我的意思是我需要以下操作: 在末尾添加一些新文本(使用各种 Span 设置样式) 同步等待用户在最后输入一些进一步的
片段 1: if ( x ) { foo(); } 片段 2: x ? foo() : 0; 这两个片段之间有什么区别? 编辑:更正了语法错误。 更新:顺便说一句,似乎还有一个更短的符号:
这个问题已经有答案了: How do I compare strings in Java? (23 个回答) 已关闭 7 年前。 我的类实现了一个非常简单的 RPN 计算器原型(prototype)。
我正在我的元素中使用,我需要为其自定义 CSS。我想在文件上传按钮中删除“+”标记(参见图片),我该怎么做? 提前致谢。 最佳答案 只是覆盖样式,按钮类是rf-fu-btn-cnt-add,加号是背景
我在 jsf .xhtml 页面中有一个 richdatatable。我有一个特定单元格的很长的文本。我如何设置列的宽度并在指定的单元格中显示文本。我是 JSF 和 CSS 的新手。我正在提供一个例子
我是一名优秀的程序员,十分优秀!