Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-10-24 06:30:48

bags
New member
From: Germany
Registered: 2007-10-24
Posts: 1

Start Editor with div instead of p

I've configured my formatblock to following:

   xinha_config.formatblock =
  {
    "— format —": "",
    "Normal"   : "div"
  };

When I select the Normal Format form the dropdownfield the editor interprets the returnbutton as div (\n). That's what I want :-)

But when the editor starts and i've don't selected a format from the dropdownfield, the editor makes a p instead of div (\n).

What do I need to change so that the editor starts always with div instead of p?

Offline

#2 2007-11-12 07:51:33

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: Start Editor with div instead of p

you need to change some of the actual code in the modules folder for that - though I don't recommend it as p is the correct markup for paragraphs of text - div's should only be used as a wrapper if required.

If you're changing p to div because of the p giving a margin I would instead recommend changing the styling to accommodate this


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

Board footer

Powered by FluxBB