HI, isomorphic,
The set font and size function of the RichTextEditor not work in Chrome but work in IE 10. I also tried the online example in Chrome but it works. So what's the problem of my code:
I'm using the nightly build of 2013-05-06 8.3 LGPL.
The set font and size function of the RichTextEditor not work in Chrome but work in IE 10. I also tried the online example in Chrome but it works. So what's the problem of my code:
Code:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<script type="text/javascript">
var isomorphicDir = "basic/js/";
</script>
<script type="text/javascript" src="basic/js/system/modules/ISC_Core.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/system/modules/ISC_Foundation.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/system/modules/ISC_Containers.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/system/modules/ISC_Grids.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/system/modules/ISC_Forms.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/system/modules/ISC_DataBinding.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/system/modules/ISC_RichTextEditor.js?isc_version=8.3.js"></script>
<script type="text/javascript" src="basic/js/skins/enterprise/load_skin.js"></script>
</head>
<body id="xxx">
<script type="text/javascript">
var ajaxDefinition =
"<span style='font-size:22px;'>Ajax</span> " +
"<b>A</b>synchronous <b>J</b>avaScript <b>A</b>nd <b>X</b>ML (AJAX) is a " +
"Web development technique for creating interactive <b>web applications</b>. " +
"The intent is to make web pages feel more responsive by exchanging small " +
"amounts of data with the server behind the scenes, so that the entire Web " +
"page does not have to be reloaded each time the user makes a change. " +
"This is meant to increase the Web page's <b>interactivity</b>, <b>speed</b>, " +
"and <b>usability</b>.<br>" +
"(Source: <a href='http://www.wikipedia.org' title='Wikipedia' target='_blank'>Wikipedia</a>)";
isc.VLayout.create({
width: 400,
membersMargin: 5,
members: [
isc.RichTextEditor.create({
autoDraw: false,
ID: "contentEditor",
height: 155,
overflow: "hidden",
canDragResize: true, showEdges: true,
// Standard control group options include
// "fontControls", "formatControls", "styleControls" and "colorControls"
controlGroups: ["fontControls", "styleControls"],
value: ajaxDefinition
}),
isc.IButton.create({
autoDraw: false,
title: "Set Canvas HTML", width: 150,
click: "htmlCanvas.setContents(contentEditor.getValue())"
}),
isc.LayoutSpacer.create({ height: 10 }),
isc.HTMLFlow.create({
ID: "htmlCanvas",
height: 130, padding: 2, overflow: "auto",
canDragResize: true, showEdges: true,
contents: "Click <b>Set Canvas HTML</b> to display edited content."
})
]
})
</script>
</body>
</html>
Comment