Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.


    <h1>Visiting Norway</h1>
    <p><strong><img style="float: right;" src=";cs=tinysrgb&amp;dpr=2&amp;h=750&amp;w=1260" alt="Town" width="300" height="375"></strong>Norway, officially the Kingdom of Norway, is a <a href="">Nordic country</a> in Northern Europe, the mainland territory of which comprises the western and northernmost portion of the Scandinavian Peninsula.</p>
    <p>The remote Arctic island of Jan Mayen and the archipelago of Svalbard also form part of Norway. Bouvet Island, located in the <a href="">Subantarctic</a>, is a dependency of Norway; it also lays claims to the Antarctic territories of Peter I Island and Queen Maud Land. The capital and largest city in Norway is <a href="">Oslo</a>.<strong><br></strong></p>
    <p>Listen to Norway's royal anthem on Spotify:</p>
    <div style="left: 0px; width: 100%; height: 152px; position: relative; max-width: 650px;" data-ephox-embed-iri=""><iframe style="top: 0; left: 0; width: 100%; height: 100%; position: absolute; border: 0;" src="" allow="clipboard-write; encrypted-media; fullscreen; picture-in-picture;" allowfullscreen="allowfullscreen"></iframe></div>
    <div class="related-content">
      <h3>Related content</h3>
      <p><strong>Lorem ipsum</strong> dolor sit amet...</p>
    <p>Norway has a total area of 385,207 square kilometres (148,729 sq mi) and had a population of 5,425,270 in January 2022. The country shares a long eastern border with Sweden at a length of 1,619 km (1,006 mi). It is bordered by Finland and Russia to the northeast and the Skagerrak strait to the south, on the other side of which are Denmark and the United Kingdom.</p>
    <p>Norway has an extensive coastline, facing the North Atlantic Ocean and the Barents Sea. The maritime influence dominates Norway's climate, with mild lowland temperatures on the sea coasts; the interior, while colder, is also significantly milder than areas elsewhere in the world on such northerly latitudes. Even during polar night in the north, temperatures above freezing are commonplace on the coastline. The maritime influence brings high rainfall and snowfall to some areas of the country.</p>
    <h2>Norway 3-day itinerary</h2>
    <p>If you're in Norway for a long weekend or just a short trip, here's our recommendation:</p>
    <table style="border-collapse: collapse; border-width: 1px;" border="1">
          <td style="width: 12.9794%; border-width: 1px;">&nbsp;</td>
          <td style="width: 44.5428%; border-width: 1px;"><strong>Location</strong></td>
          <td style="width: 42.4779%; border-width: 1px;"><strong>Activity</strong></td>
          <td style="width: 12.9794%; border-width: 1px;"><strong>Day 1</strong></td>
          <td style="width: 44.5428%; border-width: 1px;">Fl&aring;m Mountain Railway and Fl&aring;m village</td>
          <td style="width: 42.4779%; border-width: 1px;">Tellus est malesuada&nbsp;</td>
          <td style="width: 12.9794%; border-width: 1px;"><strong>Day 2</strong></td>
          <td style="width: 44.5428%; border-width: 1px;">UNESCO-listed N&aelig;r&oslash;yfjord and Voss village</td>
          <td style="width: 42.4779%; border-width: 1px;">Vivamus pretium ornare est</td>
          <td style="width: 12.9794%; border-width: 1px;"><strong>Day 3</strong></td>
          <td style="width: 44.5428%; border-width: 1px;">Leaving Voss</td>
          <td style="width: 42.4779%; border-width: 1px;">Amet, consectetuer adipiscing</td>
    <h2>Where to book your travel</h2>
      <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
      <li>Aliquam tincidunt mauris eu risus.</li>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p>
    <h3>Staying healthy</h3>
      <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
      <li>Aliquam tincidunt mauris eu risus.</li>
    <p><em>Featuring <a href="">content from Wikipedia</a></em></p>




  // Select the element(s) to add TinyMCE to using any valid CSS selector
  selector: "textarea",

  // Tip - To keep TinyMCE lean, only include the plugins you need.
    "a11ychecker advcode advlist advtable anchor autocorrect autolink autosave editimage fullscreen image link linkchecker lists media mediaembed pageembed powerpaste searchreplace table template tinymcespellchecker typography visualblocks wordcount",

  // Configure the toolbar so it fits your app. There are many
  // different configuration options available:
    "undo redo | styles | bold italic underline strikethrough | align | table link image media pageembed | bullist numlist outdent indent | spellcheckdialog a11ycheck typography code | fullscreen",

  // Specify the height of the editor, including toolbars and the statusbar.
  height: 540,

  // Configure the style menu and define available formats
  // Here, we have defined a medium sized image format as an example.
  // There is a lot more you can do with formats:
  style_formats: [
    { title: "Heading 1", block: "h1" },
    { title: "Heading 2", block: "h2" },
    { title: "Paragraph", block: "p" },
    { title: "Blockquote", block: "blockquote" },
    { title: "Image formats" },
    { title: "Medium", selector: "img", classes: "medium" }

  // Use font_css to load custom fonts from an external source
  font_css: [
  ], // URLs containing commas and such have to be wrapped in an array to work

  // The following css will be injected into the editor, extending
  // the default styles.
  // In a real world scenario, it's recommended to use the content_css
  // option to load a separate CSS file. This makes editing easier too.
  content_style: `
        body {
          font-family: 'Roboto', serif;
          color: #222;
        img {
          height: auto;
          margin: auto;
          padding: 10px;
          display: block;
        img.medium {
          max-width: 25%;
        a { 
        .related-content {
          padding:0 10px;
          margin: 0 0 15px 15px;

  // TinyMCE offers a wide range of options to control what classes, styles
  // and attributes are allowed in the content. All other classes will be
  // filtered out.
  valid_classes: {
    img: "medium",
    div: "related-content"

  // Enable image fig captions
  image_caption: true,

  // Advanced Code Editor lets power users edit the editor's underlying HTML in real time,
  // with indents and color coding. Enable inline view for a more seamless code editing
  // experience.
  advcode_inline: true,

  // Templates is useful for when users need to insert repeatable content,
  // for example a related content block.
  templates: [
      title: "Related content",
      description: "This template inserts a related content block",
        '<div class="related-content"><h3>Related content</h3><p><strong>Lorem ipsum</strong> dolor sit amet...</p></div>'

  // The Accessibility Checker plugin offers extensive controls over which
  // level of compliance to test against and which rules to enforce.
  a11ychecker_level: "aaa",

  // Advanced Typography allows users to apply 25+ typographic conventions to their content.
  // Specify the language(s) you want the plugin to use. In this case we are just allowing
  // English, but an array of languages can also be specified.
  typography_langs: ["en-US"],
  typography_default_lang: ["en-US"]