PDA

View Full Version : insert image in a Rich Text Editor



keyepvc
12-07-2006, 07:51 AM
hi, i am developing a Rich Text Editor with the functionallity of inserting image. Does anyone have the experiece of making an image to be follow by more than 1 line of sentences?
As we familiar with, before or after we insert an image we can only type 1 line of sentence no matter how big is the image, what i mean here is i desire to make a function that allow the user to type more than one line whenever they had insert an image.

Hope u guys understand what i mean

Thank a lot for reply.

djr33
12-07-2006, 08:25 AM
divs or tables needed for that, basically.

keyepvc
12-07-2006, 11:02 AM
Thank you .....

keyepvc
12-08-2006, 08:34 AM
but i m not creating a web site, what i creating is the Rich Text Editor allowed the user can type in another line or more than 1 line after they insert an image.
Pls give me more guidelines........

Thank You

djr33
12-08-2006, 09:49 AM
It's complex. But... yeah, you'd basically need a table with two cells, or two divs lined up next to each other.
I wouldn't really know the exact coding on that... a RTE is a big project :)

keyepvc
12-10-2006, 07:34 AM
djr33, do u know any web site that i can get for the tutorial of this?

Thank you

djr33
12-10-2006, 07:46 AM
Not really sure.

If I were to try, I'd just copy an existing function and try to mimic it, plus changing the html it outputs (to create the needed table, etc.).
That's probably easier said than done, however.

shachi
12-10-2006, 08:11 AM
http://www.mozilla.org/editor/midas-spec.html

there's one related with IE but not sure where. Try googling it.

keyepvc
12-10-2006, 08:38 AM
ok , Thank you very much guys!

shachi
12-10-2006, 09:15 AM
May be this helps too: http://www.devguru.com/features/tutorials/wysiwyg/wysiwyg3.html

keyepvc
12-13-2006, 08:58 AM
can give me some guidelines on how to start.....?
thank.....

keyepvc
12-13-2006, 09:01 AM
It's complex. But... yeah, you'd basically need a table with two cells, or two divs lined up next to each other.
I wouldn't really know the exact coding on that... a RTE is a big project :)

can give me some guidelines on how to start.....?
thank.....

djr33
12-13-2006, 09:06 AM
This project is over my head, no question.
I wouldn't even know how to do wysiwyg for bold.

However, the html is simple--
<table><tr><td><img ...></td><td>Text here</td></tr></table>

That's all I can really suggest.

Figure out how it works, google it.... not sure what to say. You're diving into a huge project, so good luck.

keyepvc
12-13-2006, 10:12 AM
This project is over my head, no question.
I wouldn't even know how to do wysiwyg for bold.

However, the html is simple--
<table><tr><td><img ...></td><td>Text here</td></tr></table>

That's all I can really suggest.

Figure out how it works, google it.... not sure what to say. You're diving into a huge project, so good luck.

:( ok anyway thank you