show a different text in display alone but not when editing

show a different text in display alone but not when editing

liasonsamliasonsam Posts: 2Questions: 0Answers: 0
edited February 2014 in Editor
I am trying to achieve the following functionality

If a cell contains an image, i.e, , then display the text "image"
When the user double clicks to edit, display the whole html itself, i.e

Basically this is to prevent from displaying huge images that will distort the table view, hence only when the user is editing he/she can see the html.

What it shows when i use img:

https://www.dropbox.com/s/xxb97zgxvkr9ouz/Capture.PNG

How I need in display:

https://www.dropbox.com/s/5kwuq894zy4dnw1/capture1.PNG

And when the cell is edited:

https://www.dropbox.com/s/nnwfzgzrtvxfwpf/capture2.png
This discussion has been closed.