Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6194095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:14:14+00:00 2026-05-24T03:14:14+00:00

I am using NicEdit as a wysiwig JS editor for a page in my

  • 0

I am using NicEdit as a wysiwig JS editor for a page in my MVC3 project. The field i want an editor for is a textarea and it is a ‘required’ field.

The problem is that the clientside JQuery validation does not ‘see’ the content entered in nicEdit textarea (because nicEdit completely changes the page and the textarea IS empty). How would i fix this? Is there a way to immmediately fill the textarea with the value of the edit box? Can I hook into the JQuery validation in a nice way so things stay ‘unobtrusive’?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:14:15+00:00Added an answer on May 24, 2026 at 3:14 am

    OK here’s what i’ve come up with. I just added some code to the click handler of the submit button so the nicEditor updates the html before jquery validation kicks in:

    $('input[type=submit]').bind('click', function () {
        for(var i=0;i<nicEditor.nicInstances.length;i++){
            nicEditor.nicInstances[i].saveContent();
        }
    });
    

    Also as a note i had to remove some code from NicEdit.js as it was adding linebreak tags if the content was empty like this:

    if(this.getContent() == "") {
      this.setContent('<br />');
    

    }

    I removed this code so a textarea stays empty.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using nicedit on a textarea to allow rich editor functionality. I also want
I am using nicEdit editor and I have added my own custom image resizing
I'm using a rich text editor in my asp.net mvc form (nicedit with a
i am using this function to insert text into NicEdit, function insertAtCursor(editor, value){ var
So what I want to do is to submit a form using jQuery's AJAX
I have a problem with using a script that adds a NiceEdit toolbar to
I'm using nicEdit but it doesn't play well with our CMS. I need to
using the jquery ui modal dialog , the background shades grey (i assuming this
using chrome 15 on osx 10.6.8 When adding event listeners, I've found that putting
Using Browserlab, it appears that the background image is not centred in Firefox7 for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.