FCK整合java以及js调用
2011-08-02 14:42
232 查看
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.ckeditor.ConfigurationHelper"%>
<%@page import="com.ckeditor.CKEditorConfig"%>
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%@page import="java.util.*" %>
<html>
<script type="text/javascript">
function clickHandle(){
CKEDITOR.instances.editor1.setData("上的方式的方式地方");
alert("sssssss:"+CKEDITOR.instances.editor1.getData());
}
</script>
<body>
<%
Map<String, String> attr = new HashMap<String, String>();
attr.put("rows", "4");
attr.put("cols", "3");
CKEditorConfig settings = new CKEditorConfig();
settings.addConfigValue("width","700");
settings.addConfigValue("toolbar","[[ 'Source', '-', 'Bold', 'Italic' ]]");
%>
<p>
<label for="editor1">Editor 1:</label>
<!-- <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea> -->
</p>
<%-- <ckeditor:replace replace="editor1" basePath="ckeditor/" /> --%>
<p>
<ckeditor:editor textareaAttributes="<%=attr %>" basePath="ckeditor/" editor="editor1" value="输入"
events="<%= ConfigurationHelper.createEventHandlers() %>" >
</ckeditor:editor>
</p>
<button onclick="clickHandle()">click</button>
</body>
</html>
<%@page import="com.ckeditor.ConfigurationHelper"%>
<%@page import="com.ckeditor.CKEditorConfig"%>
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%@page import="java.util.*" %>
<html>
<script type="text/javascript">
function clickHandle(){
CKEDITOR.instances.editor1.setData("上的方式的方式地方");
alert("sssssss:"+CKEDITOR.instances.editor1.getData());
}
</script>
<body>
<%
Map<String, String> attr = new HashMap<String, String>();
attr.put("rows", "4");
attr.put("cols", "3");
CKEditorConfig settings = new CKEditorConfig();
settings.addConfigValue("width","700");
settings.addConfigValue("toolbar","[[ 'Source', '-', 'Bold', 'Italic' ]]");
%>
<p>
<label for="editor1">Editor 1:</label>
<!-- <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea> -->
</p>
<%-- <ckeditor:replace replace="editor1" basePath="ckeditor/" /> --%>
<p>
<ckeditor:editor textareaAttributes="<%=attr %>" basePath="ckeditor/" editor="editor1" value="输入"
events="<%= ConfigurationHelper.createEventHandlers() %>" >
</ckeditor:editor>
</p>
<button onclick="clickHandle()">click</button>
</body>
</html>
相关文章推荐
- java调用js脚本,以及js脚本调用java方法
- android中webview携带cookie以及webview所加载网页中js调用java方法问题
- android学习笔记---53_采用网页设计软件界面,以及使用android系统内置的浏览器,利用js调用java方法
- android学习笔记之JQuery整合--js调用java
- android学习笔记---53_采用网页设计软件界面,以及使用android系统内置的浏览器,利用js调用java方法
- android学习笔记之JQuery整合--js调用java
- jquery uploadify的JS用法以及JAVA类的用法
- 在WebView中如何让JS与Java安全地互相调用
- 在WebView中如何让JS与Java安全地互相调用
- java 实现WebService 以及不同的调用方式
- Vue2.0 引用 exif.js 实现调用摄像头进行拍照功能以及图片上传功能
- Vaadin——写网页不需要html以及js的Java框架
- java 实现WebService 以及不同的调用方式
- java中abstract,public,protected,private以及不写作用域的时候在继承关系中的调用
- Android的JS调用Java代码或使用了Javascript相关技术,混淆问题
- 调用微信JS-SDK自定义分享以及其他接口
- 图解Java对象初始化过程以及方法调用
- Java不同类方法的调用以及static方法小解
- 如何在Android平台上使用JS直接调用Java方法
- 在Java中直接调用js代码