활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
I've been asked to modify the Link dialog in AEM's rich text editor to remove unneeded target options like "parent frame" and "top frame." I found this method of removing items, but it's giving me an "undefined" error when I try to use it.
I've searched for any information on possibly modifying this in the component dialog's .content.xml file, but there doesn't seem to be anything out there.
In other components, we just have a simple URL input field along with a checkbox for "open in a new tab." I imagine I could write a plugin for the rich text editor that uses this approach, but I haven't done that before and I'm not sure where to start or how to make sure the given URL gets added to the text content properly.
Does anyone out there have experience with this, or a place where I can look to get this information?
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
Hi @SiriusRex
I would suggest CSS work around rather that hiding through Javascript. Hiding CSS is always safe, less chances of failure and easy to update. Please follow below steps.
Key points:
Steps to hide link Target options:
You can add below styles in .css file to hide options
.cq-RichText .rte-dialog--link coral-selectlist-item[value*="_parent"],
.cq-RichText .rte-dialog--link coral-selectlist-item[value*="_top"] {
display: none;
}
Hope this work.
AG
Hi @SiriusRex
I would suggest CSS work around rather that hiding through Javascript. Hiding CSS is always safe, less chances of failure and easy to update. Please follow below steps.
Key points:
Steps to hide link Target options:
You can add below styles in .css file to hide options
.cq-RichText .rte-dialog--link coral-selectlist-item[value*="_parent"],
.cq-RichText .rte-dialog--link coral-selectlist-item[value*="_top"] {
display: none;
}
Hope this work.
AG
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수