Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saving update page problem
#1
Hi to all,

I'm a facing a problem, while i making any changes in existing page i clicked on "Saving Update" button its taking some empty space or empty line after the content..

My content is in html format only in Edit page after some space its displaying some text as follows ->"{cke_protected_1}"
after then my content is showing..

In source page the code is as follows:
Code:
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <title></title>
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <meta content="" name="keywords" />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <meta content=" | " name="description" />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <meta charset="UTF-8" />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <link rel="index" title="Top Subject" />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <link href="css/style.css" media="all" rel="stylesheet" type="text/css" />


I check "Website Health Check" also its fine...

Do you have any solution for this..

Thank YOu
Reply
#2
jrkishore4u Wrote:Hi to all,

I'm a facing a problem, while i making any changes in existing page i clicked on "Saving Update" button its taking some empty space or empty line after the content..
Do you have any solution for this..

First, which GS version?


the code, which you cited, is not clear to me. Did you edit content (pages) or a theme?
Why meta-tags in your text, in case you edited a page?

If you complain that the editor adds empty lines, this is a feature of the CKEditor which can be changed in the options.
If you mean this, I will gladly tell you how to change that
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Thank you so much for ur reply

1. im using GS 3.1

2. i edited content only (but content is in html)

3. Pls tell me how to change the CKEditor options. (editor adds empty lines)

Thanks
Reply
#4
Do you paste your html code into ckeditor window, or in sourceview mode?
Addons: blue business theme, Online Visitors, Notepad
Reply
#5
Hi Yojoe,

I paste my html code in source view mode....
Reply
#6
jrkishore4u Wrote:3. Pls tell me how to change the CKEditor options. (editor adds empty lines)

you can add this code in a Custom Configuration File (How to define an optional config file is described in the WIKI, http://get-simple.info/wiki/how_to:edito...om_files);

Code:
// from: help.pixelandtonic.com/brandonkelly/topics/how_do_i_set_output_formatting_writer_rules?
CKEDITOR.on( 'instanceReady', function( ev ) {

var blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','ul','li','table','td','tr'];
var rules = {
indent : false,
breakBeforeOpen : true,
breakAfterOpen : false,
breakBeforeClose : false,
breakAfterClose : true
};

for (var i=0; i<blockTags.length; i++) {
ev.editor.dataProcessor.writer.setRules( blockTags[i], rules );
}

});
with "true" or "false" you define whether you want to have breaks in the output before or after....
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#7
Thank you i will try it out..
Reply




Users browsing this thread: 1 Guest(s)