Does not Insert Div, Can't Align to Center - Using Editor for CMS

Last post 05-15-2009, 8:43 PM by Adam. 5 replies.
Sort Posts: Previous Next
  •  05-06-2009, 9:05 PM 51903

    Does not Insert Div, Can't Align to Center - Using Editor for CMS

    I am using this editor for an important client and they are getting very frustrated because when they change a set of text to align to the center it is not reflected in the HTML and doesn't save. This is really frustrating I have been trying to fix it for an hour.
     <?
                  $editor=new CuteEditor();
                  $editor->ID="PageText";
                  $editor->Text="$PageText";
                  $editor->FilesPath="CuteEditor_Files";
                  $editor->ResizeMode="ResizeCorner";
                  $editor->RemoveTBODYTag=true;
                  $editor->XHTMLOutput=true;
                  $editor->BreakElement="Br";
                  $editor->Height=550;
                  $editor->Width=686;
                  $editor->AutoConfigure="Simple";
                  $editor->Draw();
                  $editor=null;
    ?>
     
    I found out this is only happening when I use the
                  $editor->XHTMLOutput=true;
    attribute. I took it out for the time being but it's an XHTML site.
  •  05-12-2009, 3:35 PM 52088 in reply to 51903

    Re: Does not Insert Div, Can't Align to Center - Using Editor for CMS

  •  05-13-2009, 4:53 PM 52135 in reply to 52088

    Re: Does not Insert Div, Can't Align to Center - Using Editor for CMS

    I am unable to reproduce the bug with your editor but my editor uses the code as follows:
     
                  $editor=new CuteEditor();
                  $editor->ID="PageText";
                  $editor->Text="$PageText";
                  $editor->FilesPath="CuteEditor_Files";
                  $editor->ResizeMode="ResizeCorner";
                  $editor->RemoveTBODYTag=true;
                  $editor->BreakElement="Br";
                  $editor->XHTMLOutput=true;
                  $editor->Height=550;
                  $editor->Width=686;
                  $editor->AutoConfigure="Default";
                  $editor->Draw();
                  $editor=null;
     
     The problem happens when the $editor->XHTMLOutput=true; line is put in. I reported to support a problem that it inserts strange page breaks <br //> instead of <br /> but it also kills the ability to preview, and then go back to edit. After previewing and going back to edit the toolbar is gone. Along with this it will no longer allow you to center text or other content with the center function in the WYSIWYG.
     
    I showed your support rep  Joyce through GoToMeeting exactly what happens. She said it might be an integration issue but that is the only problem so I don't understand how that could be. I am using Mozilla Firefox 3.0 but it happens to my boss and I with Internet Explorer as well. It was very frustrating using the Editor until I figured out our problem was the XHTML line.
  •  05-14-2009, 3:43 PM 52171 in reply to 52135

    Re: Does not Insert Div, Can't Align to Center - Using Editor for CMS

  •  05-15-2009, 4:46 PM 52218 in reply to 52171

    Re: Does not Insert Div, Can't Align to Center - Using Editor for CMS

    Actually it still does not work in the latest build on my site. Everything works fine until $editor->XHTMLOutput=true; is added to the code. As soon as that code is added I am no longer able to center paragraphs and when I edit a page, then preview, then try to go back to the editing area it does not let me.
     
    I showed your live support the problem. For some reason there are discrepencies between my WYSIWYG editor and the one you posted http://phphtmledit.com/xmloutput.php .
     
    Adam do you do the live support? Can you show me the code you are using to display the editor on the page you linked me to - xmloutput.php ?
  •  05-15-2009, 8:43 PM 52225 in reply to 52218

    Re: Does not Insert Div, Can't Align to Center - Using Editor for CMS

    Here is the code of xmloutput.php.
     
    1. <?php   
    2.                 $editor=new CuteEditor();   
    3.                 $editor->ID="Editor1";   
    4.                 $editor->Text="Type here";      
    5.                 $editor->EditorBodyStyle="font:normal 12px arial;";   
    6.                 $editor->EditorWysiwygModeCss="/example.css";   
    7.                 $editor->FilesPath="CuteEditor_Files";   
    8.                 $editor->XHTMLOutput = true;   
    9.                 $editor->Draw();   
    10.                 $editor=null;   
    11.                    
    12.                 //use $_POST["Editor1"]to catch the data    
    13.             ?>  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML