Inital
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Trumbowyg by Alex-D</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">
|
||||
<style>
|
||||
.documentation-body {
|
||||
background: #1a1a1a;
|
||||
color: #f4f7fa;
|
||||
}
|
||||
|
||||
.documentation-body .section-title {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.section h4 {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.wrapper .note {
|
||||
color: #ccc;
|
||||
border-left-color: rgba(255, 184, 100, 0.7);
|
||||
}
|
||||
|
||||
.hljs {
|
||||
filter: invert(92%);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="documentation-body">
|
||||
<div class="main main-demo-inner">
|
||||
<section class="wrapper section">
|
||||
<h2 class="section-title">Dark theme</h2>
|
||||
|
||||
<div class="feature">
|
||||
<h3>Basic usage</h3>
|
||||
<p>
|
||||
Gives you a dark button pane.
|
||||
</p>
|
||||
<p class="note">
|
||||
For demo purpose, this page has been forced to be in dark mode.
|
||||
</p>
|
||||
|
||||
<div class="trumbowyg-dark">
|
||||
<textarea id="editor">
|
||||
<h2>Welcome to the dark side of Trumbowyg!</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident
|
||||
optio nam reiciendis eius beatae quibusdam!
|
||||
</p>
|
||||
<p>
|
||||
The text is derived from Cicero's De Finibus Bonorum et Malorum (On the Ends of Goods and Evils, or
|
||||
alternatively [About] The Purposes of Good and Evil). The original passage began: Neque porro quisquam est
|
||||
qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit (Translation: "Neither is there
|
||||
anyone who loves grief itself since it is grief and thus wants to obtain it").
|
||||
</p>
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<h4>The code</h4>
|
||||
<pre><code class="html">
|
||||
<!-- Wrap the editor with an element with the class trumbowyg-dark -->
|
||||
<div class="trumbowyg-dark">
|
||||
<textarea id="editor"></textarea>
|
||||
</div>
|
||||
</code></pre>
|
||||
<pre><code class="js-code-to-eval javascript">
|
||||
$('#editor').trumbowyg();
|
||||
</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 THIS LINES IN YOUR PROJECT, THEY ARE THERE JUST FOR THE EXAMPLE PAGE PRUPOSE -->
|
||||
<script src="../js/loader.js"></script>
|
||||
<script>
|
||||
loadStyle('dist/ui/trumbowyg.min.css');
|
||||
loadScript('dist/trumbowyg.min.js', 'Import Trumbowyg');
|
||||
</script>
|
||||
<script src="../js/runExampleCode.js"></script>
|
||||
<script src="../js/highlight.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Trumbowyg by Alex-D</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">Default</h2>
|
||||
|
||||
<div class="feature">
|
||||
<h3>Basic usage</h3>
|
||||
<p>
|
||||
No plugin, no options. Just naked Trumbowyg.
|
||||
</p>
|
||||
|
||||
<div id="editor">
|
||||
<h2>This editor is the default build of Trumbowyg.</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident
|
||||
optio nam reiciendis eius beatae quibusdam!
|
||||
</p>
|
||||
<p>
|
||||
The text is derived from Cicero's De Finibus Bonorum et Malorum (On the Ends of Goods and Evils, or
|
||||
alternatively [About] The Purposes of Good and Evil). The original passage began: Neque porro quisquam est
|
||||
qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit (Translation: "Neither is there
|
||||
anyone who loves grief itself since it is grief and thus wants to obtain it").
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h4>The code</h4>
|
||||
<pre><code class="js-code-to-eval javascript">
|
||||
$('#editor').trumbowyg();
|
||||
</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 THIS LINES IN YOUR PROJECT, THEY ARE THERE JUST FOR THE EXAMPLE PAGE PRUPOSE -->
|
||||
<script src="../js/loader.js"></script>
|
||||
<script>
|
||||
loadStyle('dist/ui/trumbowyg.min.css');
|
||||
loadScript('dist/trumbowyg.min.js', 'Import Trumbowyg');
|
||||
</script>
|
||||
<script src="../js/runExampleCode.js"></script>
|
||||
<script src="../js/highlight.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Trumbowyg by Alex-D</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">Simple</h2>
|
||||
|
||||
<div class="feature">
|
||||
<h3>Basic usage</h3>
|
||||
<p>
|
||||
Only strong (bold), emphasis (italic), some align, image and link.
|
||||
</p>
|
||||
|
||||
<div id="editor">
|
||||
<p style="text-align: center;">
|
||||
<strong>Colllect</strong> — See <em>more</em> at <a href="http://getcollect.io/?ref=trumbowyg">http://colllect.io</a>
|
||||
</p>
|
||||
<p style="text-align: center;">
|
||||
<img src="http://getcollect.io/images/install/ui.png" alt="Colllect" width="50%">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h4>The code</h4>
|
||||
<pre><code class="js-code-to-eval javascript">
|
||||
$('#editor').trumbowyg({
|
||||
btns: [
|
||||
['strong', 'em'],
|
||||
['justifyLeft', 'justifyCenter'],
|
||||
['insertImage', 'link']
|
||||
]
|
||||
});
|
||||
</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 THIS LINES IN YOUR PROJECT, THEY ARE THERE JUST FOR THE EXAMPLE PAGE PRUPOSE -->
|
||||
<script src="../js/loader.js"></script>
|
||||
<script>
|
||||
loadStyle('dist/ui/trumbowyg.min.css');
|
||||
loadScript('dist/trumbowyg.min.js', 'Import Trumbowyg');
|
||||
</script>
|
||||
<script src="../js/runExampleCode.js"></script>
|
||||
<script src="../js/highlight.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user