$iw_vfe =~ s/(src=")(.*?htdocs)([^"]*)/$1\.\.$3/ig;
Hi thanks for the solution, but however, we need to stripe this in the DCT in order to let the user see the image. I am affraid it will cause more confusion to the user when they can't see something in the DCT but it appear in the generated page...I am thinking of writting a formAPI to handle that, but I have no reference guide to check what is the appropriate event handler to capture the insert picture.so hope someone can suggest me a workaround
If you are planning to do this through formAPI, you can use onItemChange, pick the value from the item strip the htdocs part and replace the value.
Hi Sailesh, Just out of curiousity, if I use onItemChange event handler, will that cause performance issue when the user is writting a long content? Let say 1,000 words? Is that usually will compare charecter by charecter? please advise, as maybe you have a better way to handle it Regards, Wai Kong
onItemChange is like onBlur event in javascript where it would only get triggered when user moves the focus out of the textarea. So should not have any performance issue.