Is there are way to modify the behavior when pasting an image in a RTF using the Experience Manager?
2 Answers
Potentially the Tridion Event System and/or extensions may help you modify and enhance system behavior, however as Alvin and Peter stated, it would be helpful to know what exactly it is you want to accomplish.
-
Hi, I also have this question. My requirement is to change an image or to displace an existing image to a new place inside RTF via XPM. Basically, to add new image/videos inside RTF. How can I achieve the same. I have gone through questions on same on the forum but couldn't get the answer which can help me on this.– user918Commented May 2, 2014 at 11:07
I guess you'd have to start by intercepting the Paste
event (see here) and then implement the logic around whatever it is you want to achieve. Keep in mind that most browsers disallow access to the clipboard from Javascript, so you won't be able to do anything fancy like manipulate the image before pasting or even checking the image dimensions.
CTRL
+P
? I'd imagine we'd need an extension to "detect" the paste, but also create a component and make the link in the RTF.