width : number|stringDefault: undefined

The width of the editor. Numeric values are treated as pixels.

Examples

JS

    
 <textarea id="editor"></textarea>
 <script>
     $('#editor').editor({ width: 900 });
 </script>

  

HTML

    
 <div id="editor" width="900"></div>
 <script>
     $('#editor').editor();
 </script>