SOLVED: Submitting dynamic text from CMS

Last post 02-20-2012, 12:40 PM by hassinck. 1 replies.
Sort Posts: Previous Next
  •  02-20-2012, 8:38 AM 73081

    SOLVED: Submitting dynamic text from CMS

    Hi,
     
    I just installed this nice wysiwyg editor into my recently built CMS. Following the instructions given by the documentation, this tool was easily integrated. However, the following occurs:
    When adding the editor into my CMS management part, I replaced  
    1. $editor->Text="Type here";  
    with 
    1. $editor->Text=$pagebody;  
    , where $pagebody is the dynamic text meant to be placed in the body of my site and named id "pagebody" to fit my allready working CMS.
    1. $editor->ID="pagebody";  
    Other than this, some checkboxes and input fields are part of this page in order to manage page titles, page order, and so on. All is part of one form, including the textarea replacement from CuteEditor.
     
    Now, when opening the management page, the dynamic text is shown without a problem. Whenever saving the altered page by pushing the submit button, all the information from the form is parsed by a parsing file. This parsing file then does some checking on the posted input fields and then updates the database.
     
    All goes well, except, the information from the altered textarea is not saved: the same content as queried and shown before is saved... Why? 
     
    Can anyone tell my why this is happening? Am I doing something wrong? Any help is appreciated!
     
    Regards,
    Henrie 
  •  02-20-2012, 12:40 PM 73085 in reply to 73081

    Re: Submitting dynamic text from CMS

    Solved: I searched some more after I found out that other editors had the same problem. Found that these kind of errors can occur whenever a form is wrongly nested in a table. This was indeed the case in my site. Corrected the nesting of the form and table. Problem solved!
View as RSS news feed in XML