General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 7th, 2002, 04:16 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
Question WYSIWYG editor tutorial : replacing <p></p> by <div></div>

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 ?

Reply With Quote
  #2  
Old August 7th, 2002, 04:27 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
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 ?

Reply With Quote
  #3  
Old August 7th, 2002, 05:37 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
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

Reply With Quote
  #4  
Old August 7th, 2002, 06:39 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
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!

Reply With Quote
  #5  
Old August 7th, 2002, 10:07 AM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
..or you can just press shift+enter (like in any wysiwyg editor) to do a normal <br>
__________________
Best Regards,
Håvard Lindset

Reply With Quote
  #6  
Old August 7th, 2002, 10:20 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
Yes but it's not for me but my users, and i trust they wont learn shift-enter

Reply With Quote
  #7  
Old August 7th, 2002, 10:54 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
lets reverse engineer hotmail !!!
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #8  
Old August 7th, 2002, 12:53 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
Quote:
Originally posted by James Yang
lets reverse engineer hotmail !!!


I'm in!

The whole thing or just the WYSIWYG editor?

Last edited by Lindset : August 7th, 2002 at 01:16 PM.

Reply With Quote
  #9  
Old August 7th, 2002, 06:40 PM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
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

Reply With Quote
  #10  
Old August 7th, 2002, 08:07 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #11  
Old August 8th, 2002, 05:46 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
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

Reply With Quote
  #12  
Old November 18th, 2002, 07:40 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
Re: am i the only one on this forum ?

Quote:
Originally posted by w0lverine
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!


where do you add the <div> tag?? I cant get it to work!!

thanks!!
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #13  
Old November 19th, 2002, 09:38 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
cant you make PHP replace <P>'s with <br>'s?
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #14  
Old November 19th, 2002, 06:56 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
$string = str_replace("<p>", "<br>", $string");

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > WYSIWYG editor tutorial : replacing <p></p> by <div></div>


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |