Inital
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Line height plugin | Trumbowyg</title>
|
||||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
</head>
|
||||
<body class="documentation-body">
|
||||
<div class="main main-demo-inner">
|
||||
<section class="wrapper section">
|
||||
<h2 class="section-title">Line height plugin</h2>
|
||||
|
||||
<div class="feature">
|
||||
<h3>Basic usage</h3>
|
||||
<p>
|
||||
User can change the line-height in Trumbowyg.
|
||||
</p>
|
||||
|
||||
<a href="../../documentation/plugins/#plugin-lineheight" class="button button-demo">Read font size plugin documentation</a>
|
||||
|
||||
<div id="editor">
|
||||
<h2>Change the size!</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident
|
||||
optio nam reiciendis eius beatae quibusdam!
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h4>The code</h4>
|
||||
<pre><code class="js-code-to-eval javascript">
|
||||
$('#editor')
|
||||
.trumbowyg({
|
||||
btns: [
|
||||
['lineheight']
|
||||
]
|
||||
});
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
<h3>Custom font sizes</h3>
|
||||
|
||||
<div id="editor-custom-font-sizes">
|
||||
<h2>Change the font!</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident
|
||||
optio nam reiciendis eius beatae quibusdam!
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h4>The code</h4>
|
||||
<pre><code class="js-code-to-eval javascript">
|
||||
$('#editor-custom-font-sizes')
|
||||
.trumbowyg({
|
||||
btns: [
|
||||
['lineheight']
|
||||
],
|
||||
plugins: {
|
||||
lineheight: {
|
||||
sizeList: [
|
||||
'14px',
|
||||
'18px',
|
||||
'22px'
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
<h3>Setup</h3>
|
||||
|
||||
<h4>In head tag</h4>
|
||||
<pre><code class="html loading-head">
|
||||
</code></pre>
|
||||
<h4>At the end of body</h4>
|
||||
<pre><code class="html loading-body">
|
||||
<!-- Import jQuery -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
|
||||
</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Import jQuery -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="../../js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
|
||||
|
||||
<!-- DO NOT COPY THESE LINES IN YOUR PROJECT, THEY ARE THERE JUST FOR THE EXAMPLE PAGE PURPOSE -->
|
||||
<script src="../js/loader.js"></script>
|
||||
<script>
|
||||
loadStyle('dist/ui/trumbowyg.min.css');
|
||||
loadScript('dist/trumbowyg.min.js', 'Import Trumbowyg');
|
||||
loadScript('dist/plugins/lineheight/trumbowyg.lineheight.min.js', 'Import all plugins you want AFTER importing jQuery and Trumbowyg');
|
||||
</script>
|
||||
<script src="../js/runExampleCode.js"></script>
|
||||
<script src="../js/highlight.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user