cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="header">
  <span>
    <a href="https://www.codox.io" target="_blank">
   <img id="logo" src="https://www.codox.io/assets/img/wave.svg" alt="">
    </a>
    <span>
    Real-time coediting demo in TinyMCE by Codox
      </span>
  </span>
</div>
<div class="site" id="site-left">
  <div id="site1">
    <textarea>
     
    </textarea>
  </div>
</div>
<div class="site" id="site-right">
   <div id="site2">
    <textarea>
     
    </textarea>
  </div>
</div>

            
          
!
            
              .header{
  margin-bottom: 30px;
  font-size: 1.25rem;
  line-height: 1.5rem; 
}

a{
    display:block;
}

#logo{
    height: 65px;
    text-align: center;
}
.site{
  width: 45%;
}
#site-left{
  float:left;
}

#site-right{
  float:right;
}
            
          
!
            
              function guid() {
  function s4() {
    return Math.floor((1 + Math.random()) * 0x10000)
      .toString(16)
      .substring(1);
  }
  return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
}

function demo () {

  var docId = guid();
tinymce.init({
  selector: '#site1',
  width: 754 - 2,
  height: 372 - 99,
  external_plugins: {'wave': 'https://cdn2.stage.codox.io/waveTinymce/plugin.min.js'},
        wave: {
          'docId': docId, // unique document id,
          'username': 'Sam Jones', // unique username or email address
          'apiKey': 'f43881dd-a4fa-4e59-aca3-a7d251dedbfe' // this is your actual API Key
        },
  plugins: [
    'advlist',
    'autolink',
    'lists',
    'link',
    'image',
    'charmap',
    'print',
    'preview',
    'anchor',
    'searchreplace',
    'visualblocks',
    'code',
    'fullscreen',
    'insertdatetime',
    'media',
    'table',
    'contextmenu',
    'paste',
    'imagetools'
  ],
  toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image',
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//www.tinymce.com/css/codepen.min.css'    
  ]
})

tinymce.init({
  selector: '#site2',
  width: 754 - 2,
  height: 372 - 99,
  external_plugins: {'wave': 'https://cdn2.stage.codox.io/waveTinymce/plugin.min.js'},
        wave: {
          'docId': docId, // unique document id,
          'username': 'Joe Smith', // unique username or email address
          'apiKey': 'f43881dd-a4fa-4e59-aca3-a7d251dedbfe' // this is your actual API Key
        },
  plugins: [
    'advlist',
    'autolink',
    'lists',
    'link',
    'image',
    'charmap',
    'print',
    'preview',
    'anchor',
    'searchreplace',
    'visualblocks',
    'code',
    'fullscreen',
    'insertdatetime',
    'media',
    'table',
    'contextmenu',
    'paste',
    'imagetools'
  ],
  toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image',
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//www.tinymce.com/css/codepen.min.css'    
  ]
});
}

demo();
            
          
!
999px
Loading ..................

Console