mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 08:48:54 +00:00
[FEATURE] CodeMirror first basic implementation
This commit is contained in:
parent
9ca32c8d22
commit
69fbe5d2b8
5
pom.xml
5
pom.xml
@ -157,6 +157,11 @@
|
|||||||
<artifactId>jstl</artifactId>
|
<artifactId>jstl</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.webjars</groupId>
|
||||||
|
<artifactId>codemirror</artifactId>
|
||||||
|
<version>3.21</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>HTTPClient</groupId>
|
<groupId>HTTPClient</groupId>
|
||||||
<artifactId>HTTPClient</artifactId>
|
<artifactId>HTTPClient</artifactId>
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
<meta http-equiv="expires" content="0" />
|
<meta http-equiv="expires" content="0" />
|
||||||
<meta http-equiv="pragma" content="no-cache" />
|
<meta http-equiv="pragma" content="no-cache" />
|
||||||
<meta http-equiv="cache-control" content="no-cache, must-revalidate" />
|
<meta http-equiv="cache-control" content="no-cache, must-revalidate" />
|
||||||
<link rel="stylesheet" href="${contextroot}/plantuml.css" type="text/css"/>
|
|
||||||
<link rel="icon" href="${contextroot}/favicon.ico" type="image/x-icon"/>
|
<link rel="icon" href="${contextroot}/favicon.ico" type="image/x-icon"/>
|
||||||
<link rel="shortcut icon" href="${contextroot}/favicon.ico" type="image/x-icon"/>
|
<link rel="shortcut icon" href="${contextroot}/favicon.ico" type="image/x-icon"/>
|
||||||
|
<link rel="stylesheet" href="${contextroot}/plantuml.css" />
|
||||||
|
<link rel="stylesheet" href="webjars/codemirror/3.21/lib/codemirror.css" />
|
||||||
|
<script src="webjars/codemirror/3.21/lib/codemirror.js"></script>
|
||||||
<title>PlantUMLServer</title>
|
<title>PlantUMLServer</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -41,7 +43,7 @@
|
|||||||
<%-- CONTENT --%>
|
<%-- CONTENT --%>
|
||||||
<form method="post" accept-charset="UTF-8" action="${contextroot}/form">
|
<form method="post" accept-charset="UTF-8" action="${contextroot}/form">
|
||||||
<p>
|
<p>
|
||||||
<textarea name="text" cols="120" rows="10"><c:out value="${decoded}"/></textarea>
|
<textarea id="diagtext" name="text" cols="120" rows="10"><c:out value="${decoded}"/></textarea>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit" />
|
<input type="submit" />
|
||||||
</p>
|
</p>
|
||||||
@ -82,5 +84,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<%-- FOOTER --%>
|
<%-- FOOTER --%>
|
||||||
<%@ include file="footer.jspf" %>
|
<%@ include file="footer.jspf" %>
|
||||||
|
<script>
|
||||||
|
var myCodeMirror = CodeMirror.fromTextArea(document.getElementById("diagtext"), {lineNumbers: true});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user