Dojo editor indent command generate the blockquote instead of div element on firefox
Run the test codes on firefox:
<html>
<head>
<script djConfig="parseOnLoad: true" src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"></script>
<script type="text/javascript">
dojo.require("dijit.Editor");
</script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dijit/themes/tundra/tundra.css" />
<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>
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:
<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?
Last edited by twocold; 08-26-2011 at 05:06 AM .
Reason: uncorrect words
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks