forked from lxm_front/Mergely
Build improvements (#73)
* removed editor and initial cleanup * cleanup * updated jquery * tidy up * moved src and build to lib * tidy up and fixed webpack * updated readme * removed junk * tidy up * works with sample and editor * removed editor_width and editor_height * auto width and height * added license feature * not doing dist * fixed typo * added searchcursor * fixed typo * doc updates * improved comment * updated init for cm settings * fixed jquery/cm includes * documentation updates * updated changes doc * fixed cmsettings * updated examples
This commit is contained in:
@@ -12,22 +12,24 @@ This example demonstrates how to enable line wrapping
|
||||
<meta name="author" content="Jamie Peabody" />
|
||||
|
||||
<!-- Requires jQuery -->
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
|
||||
<!-- Requires CodeMirror -->
|
||||
<script type="text/javascript" src="../lib/codemirror.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="../lib/codemirror.css" />
|
||||
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/codemirror.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/addon/search/searchcursor.min.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/codemirror.min.css" />
|
||||
|
||||
<!-- Requires Mergely -->
|
||||
<script type="text/javascript" src="../lib/mergely.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="../lib/mergely.css" />
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function () {
|
||||
$('#compare1').mergely({
|
||||
width: 'auto',
|
||||
height: 200,
|
||||
license: 'lgpl-separate-notice',
|
||||
cmsettings: {
|
||||
readOnly: false,
|
||||
lineWrapping: true,
|
||||
@@ -36,6 +38,7 @@ This example demonstrates how to enable line wrapping
|
||||
$('#compare2').mergely({
|
||||
width: 'auto',
|
||||
height: 200,
|
||||
license: 'lgpl-separate-notice',
|
||||
cmsettings: {
|
||||
readOnly: false,
|
||||
lineWrapping: true,
|
||||
@@ -44,6 +47,7 @@ This example demonstrates how to enable line wrapping
|
||||
$('#compare3').mergely({
|
||||
width: 500,
|
||||
height: 200,
|
||||
license: 'lgpl-separate-notice',
|
||||
cmsettings: {
|
||||
readOnly: false,
|
||||
lineWrapping: true,
|
||||
@@ -52,6 +56,7 @@ This example demonstrates how to enable line wrapping
|
||||
$('#compare4').mergely({
|
||||
width: 500,
|
||||
height: 200,
|
||||
license: 'lgpl-separate-notice',
|
||||
cmsettings: {
|
||||
readOnly: false,
|
||||
lineWrapping: true,
|
||||
@@ -61,6 +66,7 @@ This example demonstrates how to enable line wrapping
|
||||
width: 'auto',
|
||||
height: 200,
|
||||
autoresize: false,
|
||||
license: 'lgpl-separate-notice',
|
||||
cmsettings: {
|
||||
readOnly: false,
|
||||
lineWrapping: true,
|
||||
|
||||
Reference in New Issue
Block a user