Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <textarea>
  <h2>
    <span class="span">
        <img src="//www.tinymce.com/images/glyph-tinymce@2x.png" alt="TinyMCE Logo" width="110" height="97" style="float: right">
    </span>
    <span style="color: #828282; font-size: 35px; font-family: avenir; font-weight: 200;">TinyMCE demo: PowerPaste plugin!</span>
</h2>
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">PREMIUM PLUGIN: The TinyMCE  <a  href="https://www.tinymce.com/docs/enterprise/paste-from-word/">PowerPaste plugin</a> automatically cleans up and transfers content & images from Microsoft Word and HTML sources to ensure clean, compliant content that matches the look and feel of the site.</p>
  
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">COPY AND PASTE FROM WORD or EXCEL</p>
<ol style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
<li>Copy and paste content from MS Word or Excel into this editor.</li>
<li>Choose Remove Formatting (remove inline styles) or Keep Formatting (keep inline styles)</li>
</ol>
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">COPY AND PASTE FROM WEBSITE OR HTML SOURCES</p>
<ol style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
<li>Copy and paste content from website content into this editor.</li>
<li>Choose Remove Formatting (remove inline styles) or Keep Formatting (keep inline styles)</li>
</ol>
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">DRAG AND DROP IMAGE</p>
<ol style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
<li>Drag a local image into this editor.</li>
</ol>
  <p>---------------------------------------------------------------------</p>
  <h2 style="color: #7e7e7e; font-size: 20px; font-family: avenir;font-weight: 500;">Got questions or need help?</h2>

  <ul style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
    <li>Our <a href="https://www.tinymce.com/docs/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
    <li>Have a specific question? Visit the <a href="https://community.tinymce.com" target="_blank">Community Forum</a>.</li>
    <li>We also offer enterprise grade support as part of <a href="www.tinymce.com/pricing">TinyMCE Enterprise</a>.</li>
  </ul>

  <p style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
    Thanks for supporting TinyMCE! We hope it helps you and your users create great content.<br>All the best from the TinyMCE team.
  </p>
</textarea>
              
            
!

CSS

              
                
              
            
!

JS

              
                tinymce.init({
  selector: 'textarea',
  height: 400,
  menubar: true,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks advcode fullscreen',
    'insertdatetime media table contextmenu powerpaste'
  ],
  toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image code',
  powerpaste_allow_local_images: true,
  powerpaste_word_import: 'prompt',
  powerpaste_html_import: 'prompt',
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//www.tinymce.com/css/codepen.min.css']
});
              
            
!
999px

Console