Run the test codes on firefox:
[COLOR=”Blue”][B]<html>
<head>
<script djConfig=”parseOnLoad: true” src=”
<script type=”text/javascript”>
dojo.require(“dijit.Editor”);
</script>
<link rel=”stylesheet” type=”text/css” href=”
<script>
dojo.addOnLoad(function(){
var editor = dijit.byId(“myEditor”);
editor .onLoadDeferred.addCallback(function(){
editor.attr(“value”, “<b>This is new content.</b>”);
});
});
</script>
</head>
<body class=”tundra”>
<div dojoType=”dijit.Editor” id=”myEditor”>
<p></p>
</div>
</body>
</html>[/B][/COLOR]
Typing words,and then clicking the indent command,using the firebug to see the words and you will find the words are surrounded by the the blockquote,not the div element.I’m surprise with this.
And another simple case:
[B][COLOR=”Blue”]
<html>
<head>
<title>test</title>
<meta http-equiv=”content-type” content=”text/html;charset=utf-8″ />
<script type=”text/javascript”>
window.onload = function(){
document.execCommand(‘indent’,false,false);
}
</script>
</head>
<body contentEditable=”true”>
www
</body>
</html>
the output is the div element.
Have you guys got the issue?