html5 - TinyMCE is not working correctly in MVC4 -
I am here in a dam I am trying to use TinyMCE as a text editor in my MVC 4 project .
It is very simple yet, I should be able to show the editor correctly.
I have 2 classes of importance.
Controller:
Public Class RapportController: Controller {ImageHandler Handler = ImageHandler.Instance; IDictionary & lt; String, System.Drawing.Image & gt; Image = ImageHandler.Instance.SharedCollection.GetCollection (); Public Performance Index () {Return View (Handler. Lion Collection. GateCollection (.) Value Ollist ()); } Public void GetImage (string name) {(MemoryStream s = Using new MemoryStream ()) {Pictures [name] .save (s, System.Drawing.Imaging.ImageFormat.Png); System.Web.Helpers.WebImage webImg = New System. Web. Assistant. Web image (s); WebImg.Write (); }} Then to see there, which is where I am trying to work TinyMCE:
@model IList & LT ; System.Drawing.Image & gt; @ {ViewBag.Title = "index"; }
synergy tinyMCE.init ({mode: "textareas", theme: "Advanced" Plugins "feelings, spell-checker, Advhr, Insertdatetime, Preview "// Theme options - button # indicated row # only theme_advanced_buttons1:" newdocument, |, bold, italic, underline, |, justifyleft, justifycenter, justifyright, fontselect, fontsizeselect, formatselect ", theme_advanced_buttons2:" cut, copy, paste , |, bullist, numlist, |, Outdent, indent, |, undo, Redo, |, link, unlink, anchor, image, |, code, preview, |, ForeColor, backcolor ", theme_advanced_buttons3:" insertdate, inserttime , |, Spell-checker , Advhr ,, removeformat, |, sub, sup, |, charmap, emotions ", theme_advanced_toolbar_location:" TOP ", theme_advanced_toolbar_align:" leave ", theme_advanced_statusbar_location:" bottom ", theme_advanced_resizing: true});
This is some content that will be editable with TINMEMEE.
& lt; Div class = "float-right" & gt; & Lt; Ul id = "picture" & gt; @forcha (model in system, drawing image image) {memory stream stream = new memorystream (); item. Save (stream, system, drawing. Imaging image format. PGG); Stream Search (0, SeekOrigin.Begin); String Base 64 = Convert. ToBase64String (stream.ToArray ()); & Lt; Li & gt; & Lt; A href = "javascript: new popup ('data: image / gif; base64, base64');" & Gt; IMG height = "100" width = "200" src = "data: image / gif; base 64 @ base64" /> & Lt; / A & gt; & Lt; / Li & gt; } & Lt; / Ul & gt; & Lt; / Div & gt; // popup window code function newPopup (url) {popupWindow = window.open (url, 'popupwindow', 'height = 600, width = 1100, left = 10 , Top = 10, resizable = no, scrollbars = no, toolbar = no, menubar = no, location = no, directories = no, status = yes'}}
For some reason, it ends up appearing like this :
Any idea why I do not get any functionality from TinyMCE?
Thank you in advance :)
Understand this. While defining you do not have permission to use the local path when defining you.
Comments
Post a Comment