| Pages: [1] |
|
|
Author |
Topic: WYSIWYG Editor uses DIVs for new paragraphs? (Read 195 times) |
|
Pangdene
Posts: 21
|
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 
|
|
|
|
|
|
Jenkinhill
|
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.
|
Kelvyn
|
|
|
|
Pangdene
Posts: 21
|
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 
|
|
|
|
|
|
Jenkinhill
|
Double check that you don't have an unclosed div on your page. That one caught me out once. 
|
Kelvyn
|
|
|
|
Pangdene
Posts: 21
|
thanks - yep, that's easy to do
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
EDIT: this works just fine now!
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|