|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, i've been using the code presented in the WYSISYG tutorial, it's great, nothing to say about it, but a question about it :
The code generated on the fly by the text editor produces paragraphs with the <P></P> style when you type the return key (as in dreamweaver for instance) and i noticed that the one Microsoft uses for Hotmail produces <DIV></DIV> style, which is much more aestetic since it doesn't jump a line. I would like to know is there is a way to make devarticle's editor work the same way, because my users are disturbed by this : eache time they want to go to the line, it jumps one ![]() This would be of a great help so if anyone experienced this problem i would personnaly thank him ![]() Thanks already bye
__________________
who needs to know who i am ?
|
|
#2
|
|||
|
|||
|
BTW another question
By the way I have another question about this text-editor :
is there a way anyhow to force the css in the texteditor to use the css-styles that are used all around the website (i mean the generic styles like body and all, not the classes) so that users see exactly what they will get when they type it ? |
|
#3
|
|||
|
|||
|
still replying to myself :)
For my CSS problem, seems like :
iView.document.createStylesheet('css.css') seems to be the solution hope someone will help me for my <p></p> problem thought ! it's doable, guys at microsft did it ![]() |
|
#4
|
|||
|
|||
|
am i the only one on this forum ?
Well anyhow i spent some time reading the posts on the forum and the solution is to add a <div> at the beginning of the source file voila!
|
|
#5
|
|||
|
|||
|
..or you can just press shift+enter (like in any wysiwyg editor) to do a normal <br>
__________________
Best Regards, Håvard Lindset |
|
#6
|
|||
|
|||
|
Yes but it's not for me but my users, and i trust they wont learn shift-enter
![]() |
|
#7
|
|||
|
|||
|
lets reverse engineer hotmail !!!
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
|
#8
|
|||
|
|||
|
Quote:
I'm in! The whole thing or just the WYSIWYG editor? ![]() Last edited by Lindset : August 7th, 2002 at 01:16 PM. |
|
#9
|
|||
|
|||
|
I did reverse engineer hotmail, but it doesn't bring much compared to what has been posted here... as always, microsoft programmers tend to complicate things at the maximum for not much . and the image fonction is not implemented yet. Take a look a their table properties though, it's well conceived.
All the rest is jsut aestethic and doesn't bring much |
|
#10
|
|||
|
|||
|
lol, once i reversed enginered the microsoft web site to get those cool drop down menus,
then i realised that, there is a program, which is like a million times easier |
|
#11
|
|||
|
|||
|
so true
Especially in web site developpement, i don't know how they do it but their scripts are just soo complicated for so little, i would die see their server-side asp, must be quite fun
![]() |
|
#12
|
|||
|
|||
|
Re: am i the only one on this forum ?
Quote:
where do you add the <div> tag?? I cant get it to work!! thanks!! |
|
#13
|
|||
|
|||
|
cant you make PHP replace <P>'s with <br>'s?
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#14
|
|||
|
|||
|
$string = str_replace("<p>", "<br>", $string");
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > WYSIWYG editor tutorial : replacing <p></p> by <div></div> |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|