javascript - How to show echo content inside of a DIV -


I'm trying to load an html file for inline editing with tinymce, which basically means a dividing area The output resonates in so that the editor up Page load is just fine, though the editor appears "up" "html", which looks like a small div box, which spreads the page in place of the content. I need reciprocated $ content to appear inside the Div area, and instead it appears that it is showing below

 screenshot added

  & lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTD XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "../tinymce / js / tinymce / tinymce.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Tinymce.init ({selector: "div.edit", subject: "modern", plugins: [["Avelith AutoLink link image list memory print preview hr anchor pagebreaker spell-checker"], ["searchable wordfinder viewfinder viewShex code fullscreen TrueTime Media Non-Breaking "], [" Table ContextMenu Directionality Emoticon Template Save Paste "] [" Full Page "]], add_unload_trigger: false, schema:" HTML5 ", inline: true, toolbar:" Revert | Stylish Eselect | bold italic | alignleft aligncenter alignright alignjustify | ballistic number list outdent indent | link image | print preview media ", status file: wrong}); Tinymce.init ({selector: "h1.edit", theme: "modern", add_unload_trigger: false, schema: "html5", inline: correct, toolbar: "undo", status bar: wrong}); & Lt; / Script & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "edit" & gt; & Lt ;? Php $ filename = "../projectevo/emeraldcity.html" ;; $ Handle = fopen ($ filename, "r"); $ Content = fred ($ handle, files ($ filename)); fclose ($ handle); $ Content echo; ? & Gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;    

You make better use of text area mode and it will work well.

  & lt; Textarea name = "cols =" "rows =" 100 "& gt; & Lt ;? Php $ filename = "../projectevo/emeraldcity.html"; $ handle = fopen ($ filename, "r"); $ Content = fred ($ handle, files ($ filename)); fclose ($ handle); $ Content echo; ? & Gt; & Lt; / Text field & gt; I have used this method and it works perfectly.  

It should present something like this in this way. And you can type image details here

directly on the table and start it as below

  tinyMCE.init ({// General option mode: "textareas",   

instead of

  Selector: "div.edit",    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -