From 804616c615e45620dc2a81b7504c2c8028fc1815 Mon Sep 17 00:00:00 2001 From: SeoJin Kim Date: Tue, 23 Mar 2021 13:30:12 +0900 Subject: [PATCH] =?UTF-8?q?[Spring][=EC=87=BC=ED=95=91=EB=AA=B0=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8][18]=20=EC=83=81=ED=92=88?= =?UTF-8?q?=20=EB=93=B1=EB=A1=9D=20-=20=EC=9C=84=EC=A7=80=EC=9C=85(wysiwyg?= =?UTF-8?q?)=20=EC=97=90=EB=94=94=ED=84=B0=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://kimvampa.tistory.com/193 --- .../WEB-INF/views/admin/goodsEnroll.jsp | 23 +++++++++++++++++-- .../resources/css/admin/goodsEnroll.css | 3 +++ .../maven/com.vam/controller/pom.properties | 2 +- .../WEB-INF/views/admin/goodsEnroll.jsp | 23 +++++++++++++++++-- .../resources/css/admin/goodsEnroll.css | 3 +++ .../maven/com.vam/controller/pom.properties | 2 +- 6 files changed, 50 insertions(+), 6 deletions(-) diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp index 65c3fe6..4f7ca2b 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp @@ -11,6 +11,7 @@ src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"> + @@ -90,7 +91,7 @@
- +
@@ -98,7 +99,7 @@
- +
@@ -131,6 +132,24 @@ $("#enrollBtn").on("click",function(e){ }); + +/* 위지윅 적용 */ + + /* 책 소개 */ + ClassicEditor + .create(document.querySelector('#bookIntro_textarea')) + .catch(error=>{ + console.error(error); + }); + + /* 책 목차 */ + ClassicEditor + .create(document.querySelector('#bookContents_textarea')) + .catch(error=>{ + console.error(error); + }); + + diff --git a/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css b/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css index 490a4e7..2f411d0 100644 --- a/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css +++ b/VamPa/src/main/webapp/resources/css/admin/goodsEnroll.css @@ -139,6 +139,9 @@ ul{ text-align-last: center; } +.ck-content { /* ckeditor 높이 */ + height: 170px; +} /* 버튼 영역 */ .btn_section{ diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index 24cfe4b..c454437 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Mon Mar 22 16:56:34 KST 2021 +#Tue Mar 23 08:56:29 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa m2e.projectName=VamPa groupId=com.vam diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp index 65c3fe6..4f7ca2b 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp @@ -11,6 +11,7 @@ src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"> + @@ -90,7 +91,7 @@
- +
@@ -98,7 +99,7 @@
- +
@@ -131,6 +132,24 @@ $("#enrollBtn").on("click",function(e){ }); + +/* 위지윅 적용 */ + + /* 책 소개 */ + ClassicEditor + .create(document.querySelector('#bookIntro_textarea')) + .catch(error=>{ + console.error(error); + }); + + /* 책 목차 */ + ClassicEditor + .create(document.querySelector('#bookContents_textarea')) + .catch(error=>{ + console.error(error); + }); + + diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css index 490a4e7..2f411d0 100644 --- a/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css +++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/goodsEnroll.css @@ -139,6 +139,9 @@ ul{ text-align-last: center; } +.ck-content { /* ckeditor 높이 */ + height: 170px; +} /* 버튼 영역 */ .btn_section{ diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index 759cbc2..de16d61 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Mon Mar 22 16:56:35 KST 2021 +#Tue Mar 23 08:56:29 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa_MySQL m2e.projectName=VamPa_MySQL groupId=com.vam