1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <html> <head> <script type="text/javascript" src="js/ckeditor/ckeditor.js"></script> <script type="text/javascript"> <!-- functiononLoad() { CKEDITOR.replace("editor2"); } // --> </script> </head> <body onload="returnonLoad();"> <div id="editor2"><em>Sample</em> text</textarea> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <%@ page buffer="none" autoFlush="true" contentType="text/html; charset=utf-8" %><% String text = request.getParameter("text"); if (text == null) { text = "<em>Sample</em> text"; } System.out.println(text); %><html> <head> <script type="text/javascript" src="js/ckeditor/ckeditor.js"></script> <script type="text/javascript"> <!-- function onLoad() { CKEDITOR.replace("editor2"); } // --> </script> </head> <body onload="return onLoad();"> <form method="post" action="sample.jsp"> <textarea id="editor2" name="text"><%=text %></textarea> <br /> <input type="submit" value="Submit" /> </form> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 | <p> <em>Sample</em> text</p> <p> Now I input another line, with fancy <u><strong><em>styles</em></strong> </u>.</p> <p> <em>Sample</em> text</p> <p> Now I input another line, with fancy <u><strong><em>styles</em></strong> </u>.</p> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |