Skip to content

Instantly share code, notes, and snippets.

@mightyteja
Created February 21, 2019 08:57
Show Gist options
  • Save mightyteja/faed39662ca2ae292c7abb4518288bc1 to your computer and use it in GitHub Desktop.
Save mightyteja/faed39662ca2ae292c7abb4518288bc1 to your computer and use it in GitHub Desktop.
Codepen Header
<header class="polygons">
<a class="logo" href="//www.tinymce.com"></a>
<h2>
Full featured web editing.<br>
<b>Featherweight</b> download.
</h2>
<div class="demo">
<textarea>
<p style="text-align: center;">
<img src="//www.tinymce.com/images/[email protected]" alt="TinyMCE" width="110" height="97">
</p>
<p style="text-align: center; color: #7E7E7E; font-size: 15px; font-family: avenir; font-weight: 400;">
TinyMCE is a platform independent web-based JavaScript HTML WYSIWYG<br>
editor control released as open source under LGPL.
</p>
<p style="text-align: center; color: #868686; font-size: 15px; font-family: avenir; font-weight: 400;">
<i>TinyMCE enables you to convert HTML textarea fields or other HTML elements to editor instances.</i>
</p>
</textarea>
</div>
</header>
<section class="download-top"></section>
tinymce.init({
selector: '.demo textarea',
width: 754 - 2,
height: 372 - 99,
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'
]
})
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc"></script>
.profile-name {
display: none;
}
.profile-header {
height: 800px;
}
a.logo {
display: inline-block;
margin-top: -50px;
margin-bottom: 50px;
width: 128px;
height: 31px;
background-image: url("//www.tinymce.com/images/[email protected]");
background-size: 128px 31px;
background-repeat: no-repeat;
background-position: 50%;
}
<link href="//www.tinymce.com/css/common.min.css" rel="stylesheet" />
<link href="//www.tinymce.com/css/home.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment