I was looking at the indite project for the same problem. I am trying to make it so people can continually reedit a document, but I am getting lots of unbalanced, ending </p>'s. Not sure how to get rid of them well or avoid them. Somebody mentioned maybe using HtmlNeko's Sax Parser to remove extra tags, but.... not sure what I will do yet. This BR thing might be a solution for me too even if I can't do all the formatting.
How do you get the editor to default to implementing <p> instead of <div> tags? I don't see anything in the documentation... Is it related to a Toolbar set? I wouldn't think so, but I don't see any configuration setting. Thanks if you can help, I feel like I'm missing something stupid.
You should not remove the use of <p> tags , because a lot of formatting is set in the <p> tags. But if you really need to , you may want to try to look at the config file for the last version . There is a mention of useBRLinecarrier or something like that in the configfile. (Maybe the function is in the beta but not set in the configfile ?)
You may try to set the <p> as margin = 0 (in css) and it will not have any space before or after
I tried using the config line: FCKconfig.UseBROnCarriageReturn = true ; but it would stop the editor from loading all together. Also, in the extended toolbar, when I tried to switch between {Normal [P]}{Normal [br]}{Heading 1}{Heading 2} it would not change anything.
The current default behavior we experience is <b> upon pressing Enter. I know this is an old question, but I cannot find a way to alter this behavior. The useBRoncarriagereturn (or something like that) seems to be ignored on Mozilla, and pressing <shift> for a <p> tag and <shift-enter> for <br> simply does not work. Though it would be a nice thing. Suggestions?
I was able to force it by adding the following javascript at the end of the fckeditorcode_ie_2.js file (and the gecko version): ---------------------------------- FCK.ExecuteNamedCommand('FormatBlock', '<P>'); ---------------------------------- In looking at the code it looked like it should have been executing this anyway - yet it wasn't... Oh well.
RE: Documentation? <br> tags...
If someone has the config options could they pleas post them!
There is in the extended toolbar an option to use the div tag instead.
Is there a way to set this a the default inited state?
RE: Documentation? <br> tags...
RE: Documentation? <br> tags...
I have the same problem.
There is a big difference between IE and Firefox 1.0.
When entering CR/LF (enter) the result is different.
IE: <p>
FireFox: <br />
I have tried on my own server and even on the demo at http://www.fckeditor.net/Demo/
Same result both places.
- Mikkel
RE: Documentation? <br> tags...
RE: Documentation? <br> tags...
Right now it does not matter if I hit enter or shift-enter in Firefox both gives a <br />.
So my question is how do I get a <p> in Firefox ?
- Mikkel
RE: Documentation? <br> tags...
Right now it does not matter if I hit enter or shift-enter in Firefox both gives a <br />.
So my question is how do I get a <p> in Firefox ?
- Mikkel
RE: Documentation? <br> tags...
RE: Documentation? <br> tags...
You may try to set the <p> as margin = 0 (in css) and it will not have any space before or after
BR Martin Kronstad
RE: Documentation? <br> tags...
FCKconfig.UseBROnCarriageReturn = true ;
but it would stop the editor from loading all together. Also, in the extended toolbar, when I tried to switch between {Normal [P]}{Normal [br]}{Heading 1}{Heading 2} it would not change anything.
<br> and <p> tags - mozilla
j9
RE: Documentation? <br> tags...
Mike
RE: Documentation? <br> tags...
----------------------------------
FCK.ExecuteNamedCommand('FormatBlock', '<P>');
----------------------------------
In looking at the code it looked like it should have been executing this anyway - yet it wasn't... Oh well.
RE: Documentation? <br> tags...
RE: Documentation? <br> tags...
Yes.
See http://www.catb.org/~esr/faqs/smart-questions.html
Tom
RE: Documentation? <br> tags...
For example, if I copy and paste in some paragraphs of text, and I am forcing the user to paste as text, the result is something like:
<p>This is one paragraph<br /><br />
This is another paragraph<br /></p>
Can it be set up to format the text like this:
<p>This is one paragraph</p>
<p>This is another paragraph</p>
???
Chris
RE: Documentation? <br> tags...
If I were a regex guru, I could come up with something that would work for 98% of the time.

Alas, no guru here. Don't think search and replace was really what you wanted anywayz.
Dunno if the formatSource option does anything like this or not. Doubt it. Hrm. Well, maybe someon else knows. good luck!