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

  • Home
  • SEARCH
  • 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 8489157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:44:57+00:00 2026-06-10T21:44:57+00:00

So I am using tinyMce in my app but I am getting a JavaScript

  • 0

So I am using tinyMce in my app but I am getting a JavaScript error that I can’t really seem to figure out how to debug. The error is “TypeError: P is undefined” – I can see that from FireBug but I have no idea how to get more / better information?

I tried turning on “break on all errors” but that just shows me the minimized JS file and I can’t even see a variable named “P” in there so I am guessing I am barking up the wrong tree. The whole thing works fine except when I click save.

shrug I am just stuck at the moment. Here is my complete code. you can see I tried removing all the plugins thinking that might be it but no dice.

Obviously the problem I need to solve is why that is happening – the better solution would be how to figure out what is actually causing it so when something like this happens again I can figure it out myself.

Thanks – see the complete code below.

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">
        $(document).ready(function() {

            $('textarea.tinymce').tinymce({
                script_url: '/Scripts/TinyMCE/tiny_mce.js',
                theme: "advanced",
                plugins: "save",
                theme_advanced_buttons1: "save",
//                plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
//                theme_advanced_buttons1: "save,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bold,italic,underline,strikethrough,|,print,|,iespell",
                theme_advanced_toolbar_location: "top",
                theme_advanced_toolbar_align: "left",
                theme_advanced_statusbar_location: "bottom",
                save_enablewhendirty: true,
                encoding: "xml",
                theme_advanced_resizing: true,
                mode: "textareas",
                save_onsavecallback: "ajaxSave",
                setup: function(ed) {
                    ed.onSaveContent.add(function(i, o) {
                        o.content = o.content.replace( /&#39/g , "&apos");
                    });
                }
            });

            function ajaxSave() {
                alert("ajaxSave called.");
            }

        });

    </script>
    <% Html.BeginForm("Index", "DisabilityReport", FormMethod.Post); %>  
    <%= Html.AntiForgeryToken() %>
    <%= Html.ModelData() %>
    <textarea name="documentContent" class="tinymce" cols="90" rows="60"></textarea>
    <% Html.EndForm();%>
</asp:Content>
  • 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-10T21:44:59+00:00Added an answer on June 10, 2026 at 9:44 pm

    I’m not sure about Firebug, but if you’re working in Chrome, the Chrome dev tools can expand compressed JS, making it easier to track down these errors. See the brackets button below:

    enter image description here

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

Sidebar

Related Questions

I have problem I can't figure out but I do have a hint. Before
I have been using tinyMce_hammer plugin to use tinymce in my rails app... but
I'm using TinyMCE with the tinymce-django app in my Django website. I am using
i posted some data using tinymce (in a symfony project).while retrieving back how can
I am using TinyMCE load via AJAX but on the same domain, same protocol
I am using the tinyMCE library for my textareas but also for image uploads,
I am using TinyMCE editor, and it is great. But I having problems with
I'm using TinyMCE for a textarea on a page but it doesn't play nice
i m using tinymce editor on joomla component that behave strangly tinymce is already
I am using TinyMCE and I notice that as soon as you input data

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.