Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

194
Views
Error javascript in TinyMce editor? How about saving data using Name?

I'm using tinyMce editor in my .Net Core project, but the scriptt function of the editor has an id.

<script>
        tinymce.init({
            selector: 'textarea#default'
        });
    </script>

In javascript I already had an id defined for the textarea

        'Desc': $('#p_Ack').val(),//this is how i was adding before the editor was added
        'Desc': $('textarea[name="p_Ack"]').val(),

I tried to save by giving a name but still the text in the textarea is blank. What can I do?

 <textarea  id="default" name="p_Ack"></textarea> 

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you want to get the content in TinyMCE.You can try to use:

'Desc':tinymce.get("default").getContent(),

or

'Desc':tinymce.activeEditor.getContent(),
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!