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 8987161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:43:24+00:00 2026-06-15T21:43:24+00:00

This line of javascript assigns a WYSIWYG editor to an element with the HTML

  • 0

This line of javascript assigns a WYSIWYG editor to an element with the HTML ID ‘description’.

 new nicEditor({fullPanel : true}).panelInstance('description')

The WYSIWYG editor then overrides the textarea.

 <textarea 

   id="description[<?php echo $pid ?>]" 
   name="description[<?php echo $pid?>]" 

 </textarea>

But the ID tag changes as it iterates through all of the descriptions. The current $pid of the description is appended to the ID tag. (description1, description2 etc.)

How do you modify the javascript to handle each appended ID name?

new nicEditor({fullPanel : true}).panelInstance('description.???')
  • 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-06-15T21:43:25+00:00Added an answer on June 15, 2026 at 9:43 pm

    It doesn’t look like niEditor supports assigning to classes, you might be better off using TinyMCE with the selector option and assigning the same class to each textarea.

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

Sidebar

Related Questions

I was analyzing Javascript codes and came across this line: var date = (new
I'm doing some experimenting with this malicious JavaScript line: var undefined = true; Every
hi i am new with javascript What is the benefit of using this line
I'm not sure what is happening in this line of javascript: alert( (''+[][[]])[!+[]+!+[]] );
For some reason, this line of code is returning undefined for $(this).attr(href) $(a).attr(href, javascript:page('
I've got a javascript function I created. Somewhere in that function, this line is
I have to inject the following line of html to a document through javascript:
If I use this line in JavaScript, $(#formfieldid).attr(value, foobar); It inserts the value attribute
I have this line of Javascript which runs a function I sourced online. However
I've got this multi-line javascript snippet: $.getJSON('@Url.Action(ReconBases)', { modelId: selectedModelId }, function(selectItems) { buildDropDown('#SelectedReconId',

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.