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

              
                <textarea id="full-featured">hello un gabarit en example a partir de l'icone : tampon encreur.</textarea>

<div>ou un div aussi, config  par defaut</div>





              
            
!

CSS

              
                a[class] {font-size:1.5em;color:blue}
body {display:grid;grid-template-columns:2fr 2fr;grid-gap:1em;}
body>textarea {min-height:80vh;}
              
            
!

JS

              
                
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "template image imagetools",
  toolbar: "template image",
  language:'fr_FR',
  templates: [
     { 
title: 'nouvelle grille', description: 'creer 2 grilles 8x20 et 1 x 4', content: '<div style="display:grid;grid-template-columns: 1fr 25%"><div style="border:solid;margin:2px;padding:0.5em;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(20,1fr);"><div>place pour 320 cases, ENTER = 1 case de plus</div></div><div style="display:grid;grid-template-rows:repeat(4,1fr)grid-gap:1em;"><figure>image ici<figcaption>descriptif ici</figcaption></figure><figure>image ici<figcaption>descriptif ici</figcaption></figure><figure>image ici<figcaption>descriptif ici</figcaption></figure<figure>image ici<figcaption>descriptif ici</figcaption></figure></div></div>' },
    {title: 'Some title 2', description: 'Some desc 2', content: 'en remplaçant <b style="color:purple">content:</b> par <b style="color:purple">url</b> , tu peut charger un fichier en le mettant entre ces apostrophes'}
  ]
});
tinymce.init({  
  selector: "div"
});
              
            
!
999px

Console