ckeditor all working implemented on a phpnuke cms site
but when a user just types in something like "just a test" and then saves the actual content is saved in the database as:
<p>
sdfsdfsf</p>
note the <p> </p> tags and a tab has crept in somehow
any ideas ?
but when a user just types in something like "just a test" and then saves the actual content is saved in the database as:
<p>
sdfsdfsf</p>
note the <p> </p> tags and a tab has crept in somehow
any ideas ?
Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
This has to do with the default Output Formatting options.
There is some info on how to change it here http://docs.cksource.com/CKEditor_3.x/D ... Formatting
Re: blank space at beginning of textareas ?
I can understand their being default formats but surely if i just type the word test in it should be passed as plain text or at the very most it should be within a paragraph i.e. <p>test</p> but in fact it shows as
<p>
test</p>
i.e. <p> followed by a carriage return then a tab then the word test and then finally the end of paragraph </p>
how "exactly" do i remove the carriage return and tab indent for any text entered ?
my existing code is along the lines of the following:-
Do i have to change this code, or is there a ckeditor file that i can change to change the settings sitewide ?
Another question unrelated to the above is there any way of counting up the number of characters that the source html is using and displaying them as the user types in the textarea ? I used to have this working with code for a plain textarea but obviously this doesn't work when used in conjunction with ckeditor ?
Re: blank space at beginning of textareas ?
I could also use some help on this. Can I turn off these features in the config file? Or can I turn them off when I initiate the editor? I did look at the developer's page mentioned above, but I'm not as savvy on the code to put them into my installation. Ideally I'd like to turn it off globally. I need the paragraph tag I'll put it there myself.

In my case, the <P><line return</p> is really messing up my use of the content field. I would appreciate you sharing if you've figured out how to turn this stuff off.
Re: blank space at beginning of textareas ?
<p><line break>text</p>
problem by putting the following lines in my config file;
config.shiftEnterMode = CKEDITOR.ENTER_BR;
config.enterMode = CKEDITOR.ENTER_BR;
Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
I actually was able to look that CKEditor Documentation and found what is causing these problems and then when trough the code and found the solution that I have posted here http://cksource.com/forums/viewtopic.php?f=11&t=20511&start=1.
It comes down to the creators of the script have set the defaults to have a line break following opening tags, closing tags and indents. Hope this helps you all.
Good Luck,
B.
Re: blank space at beginning of textareas ?
Please check out sample page of customizing the output format.