Contenteditable & InsertImage

4

4n4lyz3R

Hello,


I'm not very used to javascript. By the way, i was about to
create an object, with contenteditable set to true, in a div.
Using all the methods provided (Underline, Bold, etc ...)
through a toolbar.
I'm facing a trouble though:
InsertImage Command : Overwrites an image on the text selection.
It is surely a nice function, but if no text is selected, it pastes the
image above the div section. Is there a way to select a virtual text or i
dunno the way to use it.

Thx for help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top