tag:blogger.com,1999:blog-206145551100712277.post6282324268523536413..comments2024-03-25T11:47:58.644-05:00Comments on Experiencing Adobe Experience Manager (AEM, CQ): AEM 6440 - Content Fragment Editor Set Multi line text Requiredsreekanth choudryhttp://www.blogger.com/profile/15578091428034329691noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-206145551100712277.post-11566798773109834152021-12-21T16:49:28.061-06:002021-12-21T16:49:28.061-06:00Hey everyone, I am also not getting the red tool t...Hey everyone, I am also not getting the red tool tip with the message. But with multiple multi-line text fields, I made some changes and this is what you need to have for your method registerRTEValidator():<br /><br />function registerRTEValidator() {<br /> var $cfmMultiEditor = $(".cfm-multieditor");<br /><br /> if ($cfmMultiEditor.length > 0) {<br /><br /> $cfmMultiEditor.each(function() {<br /> if ($(this).find(".coral-Form-field").attr("aria-required") !== "true") {<br /> return;<br /> }<br /> let $multiLineEmbeddedLabel = $(this).find(".cfm-multieditor-embedded-label");<br /> let $multiLineTopLabel = $(this).find(".cfm-multieditor-top-label");<br /> $multiLineEmbeddedLabel.html($multiLineEmbeddedLabel.html() + " *");<br /> $multiLineTopLabel.html($multiLineTopLabel.html() + " *");<br /> let $rte = $(this).find("textarea.rte-sourceEditor");<br /> if (!_.isEmpty($rte)) {<br /> //coral validation framework ignores hidden and contenteditable fields, so add an invisible text field<br /> //the text field is just for registering a validator<br /> let $eaemCopyField = $("<_input_ type=text style='display:none' class='" + EAEM_INVISIBLE_CLASS + "'/>")<br /> .insertAfter($rte);<br /><br /> let $rteEditable = $rte.prev("[data-cfm-richtext-editable]");<br /><br /> $eaemCopyField.val($rteEditable.text().trim());<br /><br /> checkValidity.call($eaemCopyField[0]);<br /><br /> $rte.prev("[data-cfm-richtext-editable]").on("input", function () {<br /> $eaemCopyField.val($(this).text().trim());<br /> checkValidity.call($eaemCopyField[0]);<br /> });<br /> } else {<br /> //$(PLAIN_MARKDOWN_SELECTOR).each(checkValidity);<br /> }<br /> });<br /> }<br /> }<br /><br />it won't allow me to add the input element's HTML markup as it was, so just remove the underscores before and after the input tag name.Leehttps://www.blogger.com/profile/07346764173014702950noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-58429015816894889252020-12-07T18:24:32.613-06:002020-12-07T18:24:32.613-06:00Is there any input on questions above?
Is there any input on questions above?<br />Test first bloghttps://www.blogger.com/profile/11132003951272588707noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-12032651039837443042020-03-23T01:42:59.314-05:002020-03-23T01:42:59.314-05:00Hey Sreekanth, Could you please help with - how ca...Hey Sreekanth, Could you please help with - how can i use multiline editor data type as a multifield? Currently that option is not available as default with CF model.Amithttps://www.blogger.com/profile/13784655343610255017noreply@blogger.com