SnippetMaster Support Forums
Return to main website
 
June 16, 2008, 01:54:08 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 16, 2008, 01:54:08 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: WYSIWYG Editor uses DIVs for new paragraphs? « previous next »
Pages: [1] Print
Author Topic: WYSIWYG Editor uses DIVs for new paragraphs?  (Read 195 times)
Pangdene

Posts: 21


[-] WYSIWYG Editor uses DIVs for new paragraphs?
« on: February 22, 2008, 05:23:22 PM »

Hi,

If I edit a snippet and hit enter to create a newline, the resultant code created is using DIVs for each newline - shouldn't it be using <p> tags or <br /> tags?

Regards
P Smile
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 349



[-] Re: WYSIWYG Editor uses DIVs for new paragraphs?
« Reply #1 on: February 23, 2008, 02:33:46 AM »

If the snippet you are editing contains an opening <div> and not a closing</div> then it will insert new divs for spacing. The answer is to ensure that the snippet tags either surround fully a div containing the editable area or are within that div.
Report to moderator   Logged

Kelvyn
Pangdene

Posts: 21


[-] Re: WYSIWYG Editor uses DIVs for new paragraphs?
« Reply #2 on: February 23, 2008, 02:35:20 AM »

thank you!

Interesting, as the snippet tags are surrounded by a closed div, but within the snippet tags there are no divs or p tags, just text.

I shall try this out by putting a closed div immediately inside the snippet tags and around the text to be edited.

Regards
P Smile
« Last Edit: February 23, 2008, 02:37:07 AM by Pangdene » Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 349



[-] Re: WYSIWYG Editor uses DIVs for new paragraphs?
« Reply #3 on: February 23, 2008, 03:32:50 AM »

Double check that you don't have an unclosed div on your page. That one caught me out once.  Smile
Report to moderator   Logged

Kelvyn
Pangdene

Posts: 21


[-] Re: WYSIWYG Editor uses DIVs for new paragraphs?
« Reply #4 on: February 23, 2008, 09:06:52 AM »

thanks - yep, that's easy to do  Smile

However, in this case the file is just a div with snippet tags inside and text inside that (trying an 'include file' approach)

Regards
P Smile

EDIT: this works just fine now!
« Last Edit: February 23, 2008, 12:30:53 PM by Pangdene » Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: WYSIWYG Editor uses DIVs for new paragraphs? « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!