How to change cq: inplaceEditing save property

I want to use cq: inplaceEditing to change a property on my JCR whenever it is used by AEM authors. Unfortunately, I do not know how to change the name of a property that it actually modifies in JCR. Apparently, it modifies the value of the text property by default.

For my purposes, I want to use its editing with extended text for properties with names that I define, and not just the default text.

The image at this link shows a tree containing cq: inplaceEditing (courtesy of CRXDE):

enter image description here

These are the attributes of cq: editConfig:

enter image description here

These are the cq: inplaceEditing attributes:

enter image description here

... , node JCR, inplaceEditor. . , "" , inplaceEditor. , , inplaceEditor, text:

enter image description here

"text"?

----------- ----------

"textPropertyName" , , - inplaceEditor. - "text" JCR , "textPropertyName".

cq: InplaceEditingConfig:

enter image description here

JCR node , "configPath" . , textPropertyName node, - "" :

enter image description here

, JCR .

enter image description here

----------- ----------

, , . - .

+4
2

inplace CQ.ipe.InplaceEditing. , editorType CRXDE.

CQ.ipe.InplaceEditing , CQ.ipe.TextEditor, script editorType i.e.: CQ.ipe.InplaceEditing.register("text", CQ.ipe.TextEditor);

, textPropertyName, , . inplace node (. Adobe), .

Geometrixx.

  • CRXDE Geometrixx Text: /apps/geometrixx-gov/components/text.
  • /apps/geometrixx-gov/components/text/cq:editConfig/cq:inplaceEditing@configPath.
  • /apps/geometrixx-gov/components/text/dialog/items/tab1/items/text : textPropertyName=myPropertyName.
  • Geometrixx Gov Geometrixx, . POST

TouchUI

TouchUI

TouchUI, , . text inplace TouchUI /libs/cq/gui/components/authoring/clientlibs/editor/js/editors/InlineTextEditor.js.

"text" , hardcoded . AEM 6.1 ( ) ns.persistence.readParagraphContent, initialContent JSON. finishInlineEdit addHistoryStep. "text" .

, , - ( ootb) , . - - . : ns.editor.register. JS, , , .

+14

AEM 6.3, textPropertyName PlainTextEditor.js

config node cq:InplaceEditingConfig

Node configuration location in cq: InplaceEditingConfig

textPropertyName property and value


. : /libs/cq/gui/components/authoring/editors/clientlibs/core/inlineediting/js/PlainTextEditor.js

+1

Source: https://habr.com/ru/post/1598301/


All Articles