Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 58 lines (50 sloc) 1.928 kb
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<!--
Developed for the XML Editor Barn Raising Week at MITH
c) MITH 2011
Grant Dickie
James Chartrand
-->
<title>TEI Lite-based Editor</title>

<script type="text/javascript" src="plugins/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="plugins/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="plugins/ckeditor/adapters/jquery.js"></script>
<script>
$(function(){
// create the editor using the jquery plugin for ckeditor with a basic toolbar
$(".main > #ckeditor").ckeditor({toolbar:[['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']]});
// grab the instance of the editor
var editor=$(".main > #ckeditor").ckeditorGet();
// use the actual Javascript instance to customize a dialog box
editor.on( 'pluginsLoaded', function( ev ){
if ( !CKEDITOR.dialog.exists( 'customAuthority' ) )
CKEDITOR.dialog.add( 'customAuthority',function(editor){
alert('click');
});
// Register the command used to open the dialog.
editor.addCommand( 'authorityAddCmd', new CKEDITOR.dialogCommand('authorityAddCmd' ) );
editor.ui.addButton( 'Add Authority',
{
label : 'Authority',
command : 'authorityAddCmd',
icon : '',
} );
});

});

</script>
</head>

<body>
<div class="main">
<div class="header">
<h2>Editor</h2>
<h2>Github Repo: <a href="http://github.com/jdickie/TEILiteEditor">http://github.com/jdickie/TEILiteEditor</a></h2>
</div>
<div id="ckeditor">

</div>
</div>

</body>
</html>
Something went wrong with that request. Please try again.