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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>CKEDITOR.dtd Contents</title>
<script>
// Define the CKEDITOR namespace.
var CKEDITOR = { on : function(){} };
</script>
<script src="../../core/env.js"></script>
<script src="../../core/tools.js"></script>
<script src="../../core/dtd.js"></script>
</head>
<body>
<h1>
CKEDITOR.dtd Contents
</h1>
<table border="1">
<script>
var entries = [];
// Get all entries.
for ( var p in CKEDITOR.dtd )
{
var children = [];
for ( var c in CKEDITOR.dtd[p] )
{
children.push( c );
}
children.sort();
entries.push( [ p, children.join(', ') ] );
}
// Sort them alphabetically.
entries.sort( function( a, b )
{
a = a[0];
b = b[0];
return a < b ? -1 :
a > b ? 1 : 0;
});
// Writes the list.
for ( var i = 0 ; i < entries.length ; i++ )
{
document.write(
'<tr><td><b>' + entries[i][0] + '</b></td><td>' +
entries[i][1] +
'</td></tr>' );
}
</script>
</table>
</body>
</html>
|