javascript - Make TinyMCE Editor width fit the content dynamically -


When a full position is inside the container and also that the width is updated during editing, then TinyMCE How the content can fit.

  & lt; Div class = "container" & gt; & Lt; Textarea & gt; This is my very long text which should not be broken. This is my very long text which should not be broken & lt; / Textarea & gt; & Lt; / Div & gt; & Lt; Script src = "// tinymce.cachefly.net/4.1/tinymce.min.js"></script> & Lt; Script & gt; Tinymce.init ({Selector: 'Teddera', Plugins: "Autorizes"}); & Lt; / Script & gt;  

CSS:

 . Container {status: Absolute; Top: 10px; Left: 10px; Width: Auto; << Code>  

make width < If you make width to 98% in Bella, then it looks like no good.

scroll bar.

Currently, use one of the given answers to get the width of text entered inside texteria (now TMMEE container) (I have to go with the HTML5 canvas).

After using that to resize your tinyMCE iframe.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -