-
-
+
+
+
+
-
+
- - - -
-
-
+
+
-
-
-
-
-
-
+
+
-
-
- 
- Welcome,
-
- John Doe
-
+
+
-
+
+
+ 
+ Welcome,
+
+ John Doe
++
- - - -
+
+
-
+
+
-
-
+ -
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
+ function showErrorAlert(reason, detail) {
+ var msg = '';
+ if (reason === 'unsupported-file-type') {
+ msg = "Unsupported format " + detail;
+ } else {
+ console.log("error uploading file", reason, detail);
+ }
+ $('-
+
' +
+ 'File upload error ' + msg + '
').prependTo('#alerts');
+ };
+ initToolbarBootstrapBindings();
+ $('#editor').wysiwyg({
+ fileUploadError: showErrorAlert
+ });
+ window.prettyPrint && prettyPrint();
+ });
+
+
-
\ No newline at end of file
+