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?