curriculum-builder-TinyMCEjspanel.html
5.73 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<div class="col-sm-12 nopadding" ng-controller="CurrBuildController">
<div class="col-sm-12 nopadding">
<div class="form-inline">
<button class="btn btn-primary btn-sm">
<img src="../../../content/images/CB/anchor-icon.png" alt="" title="">
</button>
<button class="btn btn-black btn-sm" onclick="cbRenameModelShow()">
<img src="../../../content/images/CB/icon-tasks.png" alt="" title="">
</button>
<button class="btn btn-black btn-sm" title="Lock">
<img src="../../../content/images/CB/icon-lock.png" />
</button>
<button class="btn btn-black btn-sm" title="Back" onclick="cbBack()">
<img src="../../../content/images/CB/icon-back.png" alt="" title="">
</button>
<button class="btn btn-black btn-sm" title="Forward" onclick="cbNext()">
<img src="../../../content/images/CB/icon-next.png" alt="" title="">
</button>
<div class="form-group">
<select id='cbSelect'></select>
<!--<select ng-model="selectedCountry" ng-options="item.countryId as item.name for item in chooseCountries">
<option value="">Select Account</option>
</select>-->
<!--<!--<select class="form-control input-sm">
<option>What is Curriculum Builder</option>
<option>Prebuilt Curriculum</option>
<option>Creating a New Curriculum</option>
<option>Creating & Capturing Content</option>
<option>Import & Export Curriculum</option>
<option>Distributing Curriculum</option>
</select>-->
<label class="font13" id="slideNumber" style="color:#fff !important">Slide 01 of 06</label>
</div>
<button class="btn btn-black btn-sm " id="hideShowEditor" title="Show/Hide Note"><img title="" alt="" src="../../../content/images/CB/icon-note.png"></button>
</div>
</div>
<div class="col-sm-1 nopadding" id="cbEditorRightSideBar">
<div class="col-sm-12 nopadding" title="Hyperlink">
<button class="btn btn-black btn-sm btn-block marginTop5" data-toggle="modal" data-target="#myModal-transparency-box"><img src="../../../content/images/CB/icon-link.png" alt="" title=""></button>
</div>
<div class="col-sm-6 nopadding" title="Add Slide">
<button class="btn btn-black btn-sm marginTop5" onclick="CBAddNewSlide()"><img src="../../../content/images/CB/icon-addslide.png" alt="" title=""></button>
</div>
<div class="col-sm-6 nopadding" title="Delete Current Slide">
<button class="btn btn-black btn-sm pull-right marginTop5" data-toggle="modal" data-target="#deletecurrentslide" onclick="CBDeleteSlide()"><img src="../../../content/images/CB/icon-removeslide.png" alt="" title=""></button>
</div>
</div>
<div class="col-sm-11 nopadding">
<textarea id="CBTextArea" style="margin-top: 37px;"></textarea>
</div>
</div>
<script type="text/javascript">
tinymce.remove();
tinymce.init({
selector: "#CBTextArea",
plugins: "lists, advlist , textcolor",
menubar: false,
height : '520px',
toolbar: 'fontsizeselect fontselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | forecolor backcolor',
content_style: ".mce-content-body {font-size:14pt;font-family:Arial;}",
content_css: ['//fonts.googleapis.com/css?family=Indie+Flower'],
theme_advanced_fonts: "Andale Mono=andale mono,times;" +
"Arial=arial,helvetica,sans-serif;" +
"Arial Black=arial black,avant garde;" +
"Book Antiqua=book antiqua,palatino;" +
"Comic Sans MS=comic sans ms,sans-serif;" +
"Courier New=courier new,courier;" +
"Georgia=georgia,palatino;" +
"Helvetica=helvetica;" +
"Impact=impact,chicago;" +
"Symbol=symbol;" +
"Tahoma=tahoma,arial,helvetica,sans-serif;" +
"Terminal=terminal,monaco;" +
"Times New Roman=times new roman,times;" +
"Trebuchet MS=trebuchet ms,geneva;" +
"Verdana=verdana,geneva;" +
"Webdings=webdings;" +
"Harrington=Harrington;" +
"Wingdings=wingdings,zapf dingbats",
//font_formats: 'Arial Black=arial black,avant garde;Indie Flower=indie flower, cursive;Times New Roman=times new roman,times;'
});
var textArea_id = "CBTextArea";
if (tinymce.editors.length > 0) {
tinymce.execCommand('mceFocus', true, textArea_id);
tinymce.execCommand('mceRemoveEditor', true, textArea_id);
tinymce.execCommand('mceAddEditor', true, textArea_id);
}
$("#hideShowEditor").click(function () {
$("#cbEditorRightSideBar").toggle();
$(".mce-panel").toggle();
});
function cbRenameModelShow() {
angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().cbRenameModelShow();
}
function cbBack()
{
angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().cbBack();
}
function cbNext()
{
angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().cbNext();
}
function CBAddNewSlide()
{
angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().CBAddSlide();
}
function CBDeleteSlide()
{
angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().showDeleteSlideModel();
}
</script>