forked from wysiwhat/Aloha-Editor
-
Notifications
You must be signed in to change notification settings - Fork 10
/
figure-and-ribbon-toolbar.html
66 lines (58 loc) · 1.8 KB
/
figure-and-ribbon-toolbar.html
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
64
65
66
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Figures!</title>
<script language="javascript">
Aloha = window.Aloha || {};
Aloha.settings = {
logLevels: {'error': true, 'warn': true, 'info': false, 'debug': false},
errorhandling : true,
plugins: {
block: {
defaults : {
'.default-block': {
},
'figure': {
'aloha-block-type': 'EditableImageBlock'
},
}
}
},
bundles: {
// Path for custom bundle relative from require.js path
user: '../demo/block'
}
};
</script>
<script src="src/lib/require.js"></script>
<script src="src/lib/aloha.js" data-aloha-plugins="common/ui,common/format,common/paste,common/block,user/blockdemo,common/table,common/highlighteditables,extra/draganddropfiles,common/image,extra/figure,extra/ribbon,extra/no-floating"></script>
<link rel="stylesheet" href="src/css/aloha.css" type="text/css"/>
<link rel="stylesheet" href="src/css/jquery-ui/jquery.ui.all.css" type="text/css"/>
<style>
</style>
</head>
<body>
<h1>Figures in Aloha</h1>
<div class="document">
<p>This example uses the figure plugin.</p>
<p>You can move a figure around and eventually should be able to create/paste new ones in.</p>
<figure class="figure">
<img src="src/test/AlohaEditorLogo.png"/>
<figcaption>This is a caption on a figure</figcaption>
</figure>
<p>Here is some text after a figure</p>
<p>Below is another figure</p>
<figure class="figure">
<img src="src/test/AlohaEditorLogo.png"/>
<figcaption>This is a caption on a figure</figcaption>
</figure>
<p>And some more text after a figure</p>
</div>
<script type="text/javascript">
Aloha.ready( function() {
Aloha.jQuery('.document').aloha();
});
</script>
</body>
</html>