[Plugin: Custom Field Template] Preview image for textarea
-
Hi,
I’ve been playing with the Custom Field Template and what I’ve trying to do is to use a textarea with mediaButton to insert an image into a custom field. It kind of works; but when the image is displayed (on click in the case below) the code in the text area disappears. I’ve tried to write it back in this case.
[Photo] type = textarea mediaButton = true label = Photo rows = 5 cols = 25 onclick= var image = this.value; this.parentNode.parentNode.innerHTML +=image; this.innerHTML = image
I’ve also noticed that when this code is run the textarea becomes unusable. I wonder if it is possible? Otherwise I’ll stick with the complete tinyMCE view.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Custom Field Template] Preview image for textarea’ is closed to new replies.