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

              
                <div class="row h-100 align-items-center">
	<div class="col text-center">
		<h1><svg width="68" height="65" viewBox="0 0 68 65" xmlns="http://www.w3.org/2000/svg"><path d="M45.586 9.267a12.604 12.604 0 0 0-1.329 5.65c0 7.032 5.744 12.733 12.83 12.733l.273-.003V45.48a5.987 5.987 0 0 1-3.019 5.19L31.65 63.673a6.076 6.076 0 0 1-6.037 0L2.922 50.67a5.984 5.984 0 0 1-3.02-5.19V19.474c0-2.14 1.15-4.12 3.02-5.19L25.611 1.28a6.076 6.076 0 0 1 6.037 0l13.937 7.986zm-29.44 11.89c-.834 0-1.51.67-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h25.49c.832 0 1.51-.67 1.51-1.498v-.715c0-.827-.678-1.498-1.51-1.498h-25.49zm0 18.454c-.834 0-1.51.67-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h25.49c.832 0 1.51-.67 1.51-1.498v-.715c0-.827-.678-1.498-1.51-1.498h-25.49zm0-9.227c-.834 0-1.51.67-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h18.48c.832 0 1.508-.67 1.508-1.498v-.715c0-.827-.676-1.498-1.51-1.498H16.146zm41.191-5.232c-5.835 0-10.565-4.695-10.565-10.486 0-5.792 4.73-10.487 10.565-10.487 5.835 0 10.565 4.696 10.565 10.488 0 5.79-4.73 10.486-10.565 10.486v-.001zm3.422-8.68c0-.467-.084-.875-.25-1.225a2.547 2.547 0 0 0-.687-.88 2.888 2.888 0 0 0-1.026-.531 4.418 4.418 0 0 0-1.259-.175c-.134 0-.283.006-.447.018-.15.01-.3.034-.446.07l.075-1.4h3.587v-1.8h-5.462l-.214 5.06c.32-.116.682-.21 1.09-.28.405-.071.77-.107 1.087-.107.218 0 .437.02.655.063.218.04.413.114.585.218s.313.244.422.419c.11.175.163.39.163.65 0 .424-.132.745-.396.96a1.434 1.434 0 0 1-.938.326c-.352 0-.656-.1-.912-.3-.256-.2-.43-.453-.523-.762l-1.925.588c.1.35.258.664.472.943.214.279.47.514.767.706.298.19.63.339.995.443.365.104.75.156 1.151.156.437 0 .86-.064 1.272-.193.41-.13.778-.323 1.1-.581a2.8 2.8 0 0 0 .775-.981c.193-.396.29-.864.29-1.405z" fill="#FFF" fill-rule="evenodd"/></svg>  CKEditor 5 Balloon with Bootstrap 4</h1>
		<a href="#" class="btn btn-lg btn-dark" data-toggle="modal" data-target="#basicModal">Click to open Modal</a>
	</div>

	<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
				</div>
				<div class="modal-body">
					<div id="editor">
						<p>This is sample content of <a href="https://ckeditor.com">CKEditor 5 Balloon Build</a>.</p>

						<p>Now, <strong>make some text selection</strong>! :)</p>

					</div>
				</div>
			</div>
		</div>
	</div>
              
            
!

CSS

              
                body {
	/* We need to assaign this CSS Custom property to the body instead of :root, because of CSS Specificity and codepen stylesheet placement before loaded CKE5 content. */
	--ck-z-default: 100;
	--ck-z-modal: calc( var(--ck-z-default) + 999 );
}

/* Visual improvements. */
body, html { margin: 0; padding: 0; width: 100vw; height: 100vh; overflow: hidden; background: #56b968;}

h1 { color: #fff; }
h1 svg { position: relative; top: 20px; margin-right: 10px; }
              
            
!

JS

              
                BalloonEditor
	.create( document.querySelector( '#editor' ) )
	.catch( error => {
		console.error( error );
	} );

// Make sure the modal does not steal the input focus (e.g. when editing a link).
// https://github.com/ckeditor/ckeditor5/issues/1147
$( '#basicModal' ).modal( {
	focus: false,
	
	// Do not show modal when innitialized.
	show: false
} );
              
            
!
999px

Console