Jump to content

britonk

New Members
  • Posts

    4
  • Joined

  • Last visited

britonk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I noticed my missing closing bracket in the above and this now works. So if anyone has the same issue you have to explicitly save the contents as below before you submit the form: nicEditors.findEditor('txtCampaignDetails').saveContent();
  2. Hmm reading on it appears it should work as is actually: http://wiki.nicedit..../Javascript API I've even tried calling it explicitly though like this: nicEditors.findEditor('txtCampaignDetails'.saveContent() But unfortunetly it's still not working :-/
  3. Hi - thanks for your reply. I think you are right. I read a post that said nicEdit has a function called getContent() that returns the contents. I tried using this to store the results in a hidden input control before submitting the form. Unfortunetly Firefox says getContent() is not a function. I will read on if I get anywhere I'll post up
  4. Hi, I hope this is the right place for my post. I am writting a PHP application and want to use a rich text editor on my site (much like the one I am using to write this post ). I've found nicEdit which seems easy to implement and exactly what I am after. Unfortunetly I have hit a snag though. I am submitting my form which then goes to a PHP script that reads the values from the form and writes them to as database. Before I implemented nicEdit (and my TEXTAREAs were normal ones) this worked fine. All I have done is convert the TEXTAREAs to nicEdit ones using the below code: <script type="text/javascript" src="JS/nicEdit.js"></script> <script type="text/javascript"> //<![CDATA[ bkLib.onDomLoaded(function() { nicEditors.allTextAreas() }); //]]> </script> Everything still works but when I enter text in the TEXTAREA my PHP reads it as empty. I am using the following statement to read the value from the form: $CampaignDetails = $_POST["txtCampaignDetails"]; And my TEXTAREA is defined like this: <textarea id="txtCampaignDetails" name="txtCampaignDetails" class="textInput" cols="70" rows="8"></textarea> I've tried removing the nicEdit code and it works fine again. Do I have to read the form in a slightly different way? Any help would be appreciated. Thanks, Brian
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.