using ASP.NET MVC 4.0 , VS2012 .
On one of my pages, I tried to integrate the WYSIWYG TinyMCE editor. To integrate, I executed the following URL: .tugberkugurlu.com
My browse page is similar:
@model AboutModels @using FileUploadDemo.Models <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="Scripts/tinymce/jquery.tinymce.js" type="text/javascript"></script> @{ ViewBag.Title = "About"; } @using (Html.BeginForm()) { @Html.ValidationSummary(true) <fieldset> <legend>About</legend> <div class="editor-label"> @Html.LabelFor(model => model.Title) </div> <div class="editor-field"> @Html.EditorFor(model => model.Title) @Html.ValidationMessageFor(model => model.Title) </div> <div class="editor-label"> @Html.LabelFor(model => model.PostedOn) </div> <div class="editor-field"> @Html.EditorFor(model => model.PostedOn) @Html.ValidationMessageFor(model => model.PostedOn) </div> <div class="editor-label"> @Html.LabelFor(model => model.Tags) </div> <div class="editor-field"> @Html.EditorFor(model => model.Tags) @Html.ValidationMessageFor(model => model.Tags) </div> <div class="editor-label"> @Html.LabelFor(model => model.Content) </div> <div class="editor-field"> @Html.EditorFor(model => model.Content) @Html.ValidationMessageFor(model => model.Content) </div> <p> <input type="submit" value="Create" /> </p> <p> Posted Content : @ViewBag.HtmlContent </p> </fieldset> }
Here my Model is similar:
public class AboutModels { public string Title { get; set; } public DateTime PostedOn { get; set; } public string Tags { get; set; } [UIHint("tinymce_jquery_full"), AllowHtml] public string Content { get; set; } }
My page loads with all the features.
"@html.EditorFor(model=>model.content)"
also loads normally. but not the WYSIWYG panel (I donโt know what it is called, the panel is used to edit my text written in a text field (HTml.editorFor ())). At run time, an Exception is thrown in the jquery.tinymce.js file.
Error message:
`Unhandled exception at line 86, column 11 in http:`
And give me two options: Continue or Break . If I continue, the page loads with functions, as I mentioned earlier. If I Break, then it remains in the jquery.tinymce.js file with a yellow text background.
I have no experience with Javascript / jquery. And new to ASP.NET MVC 4.0, this is actually my first attempt at a web application in .net.
I updated jquery from nuGet. What could be the possible ways to solve it?
javascript jquery tinymce asp.net-mvc-4
user1865670
source share