Editor
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<form name="job_detail">
|
||||
<textarea cols="18" rows="3" name='jobdescription' class="wysihtml5 wysihtml5-min form-control" style="height:180px;" placeholder="Enter description here ..."> <?= $job_description ?></textarea>
|
||||
<textarea cols="18" rows="3" id='jobdescription' name='jobdescription' class="wysihtml5 wysihtml5-min form-control" style="height:180px;" placeholder="Enter description here ..."> <?= $job_description ?></textarea>
|
||||
</form>
|
||||
|
||||
</td>
|
||||
@@ -259,6 +259,37 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$('#jobdescription').trumbowyg({
|
||||
btns: [
|
||||
['viewHTML'],
|
||||
['undo','redo'],// Only supported in Blink browsers
|
||||
['formatting'],
|
||||
['strong','em','del'],
|
||||
['superscript','subscript'],
|
||||
['link'],
|
||||
/* ['insertImage'], */
|
||||
['justifyLeft','justifyCenter','justifyRight','justifyFull'],
|
||||
['unorderedList','orderedList'],
|
||||
['horizontalRule'],
|
||||
['removeformat'],
|
||||
['fullscreen']
|
||||
]
|
||||
});
|
||||
/*$('#jobdescription').wysihtml5();
|
||||
var length_limit = 500;
|
||||
$('#jobdescription').data("wysihtml5").editor.observe("load", function () {
|
||||
editor.composer.element.addEventListener("keyup", function () {
|
||||
// enter your listener-triggered code or function call here
|
||||
var content = $(this).html();
|
||||
if (content.length > length_limit) {
|
||||
//alert(length_limit + " characters is the limit!");
|
||||
//$(this).html(content.substr(0, length_limit));
|
||||
}
|
||||
});
|
||||
alert('Templae CSS is uterly broken and I do not know how to fix it. JS works though...');
|
||||
});*/
|
||||
});
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
@@ -53,6 +53,9 @@
|
||||
<!--end::Modals-->
|
||||
<!--begin::Javascript-->
|
||||
|
||||
<!-- script type="text/javascript" src="/assets/js/plugins/ui/fullcalendar/fullcalendar.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/pages/extra_fullcalendar.js"></script -->
|
||||
|
||||
<!--begin::Global Javascript Bundle(used by all pages)-->
|
||||
<script src="/site3/assets/plugins/global/plugins.bundle.js"></script>
|
||||
<script src="/site3/assets/js/scripts.bundle.js"></script>
|
||||
@@ -61,15 +64,27 @@
|
||||
<script src="/site3/assets/js/custom/widgets.js"></script>
|
||||
<script src="/site3/assets/js/custom/utilities/modals/users-search.js"></script>
|
||||
|
||||
|
||||
<script src="/site3/assets/js/custom/fullcalendar/fullcalendar.bundle.js"></script>
|
||||
<script src="/site3/assets/js/custom/datatables/datatables.bundle.js"></script>
|
||||
<script src="/site3/assets/plugins/datatables/datatables.bundle.js"></script>
|
||||
<script src="/site3/assets/js/custom/files/list.js"></script>
|
||||
<script src="/site3/assets/js/custom/calendar/calendar.js"></script>
|
||||
|
||||
|
||||
<script src="/assets/js/plugins/editors/wysihtml5/wysihtml5.min.js"></script>
|
||||
<script src="/assets/js/plugins/editors/wysihtml5/toolbar.js"></script>
|
||||
<script src="/assets/js/plugins/editors/wysihtml5/parsers.js"></script>
|
||||
<script src="/assets/ext/js/bootstrap.min.js"></script>
|
||||
<script src="/assets/js/bootstrap-wysihtml5.js"></script>
|
||||
|
||||
<!-- Import Trumbowyg -->
|
||||
<script src="/assets/js/plugins/trumbowyg/trumbowyg.min.js"></script>
|
||||
|
||||
<!--end::Page Custom Javascript-->
|
||||
<!--end::Javascript-->
|
||||
|
||||
<!-- link href="/assets/ext/css/bootstrap.min.css" rel="stylesheet" type="text/css" / -->
|
||||
<!-- link href="/assets/css/components.css" rel="stylesheet" type="text/css" / -->
|
||||
|
||||
</body>
|
||||
<!--end::Body-->
|
||||
|
||||
|
||||
@@ -24,10 +24,10 @@ $server_name = 'https://'. $_SERVER['HTTP_HOST'];
|
||||
<!--begin::Fonts-->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
|
||||
<!--end::Fonts-->
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/jquery.min.js"></script>
|
||||
<!-- script type="text/javascript" src="/assets/js/plugins/ui/fullcalendar/fullcalendar.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/pages/extra_fullcalendar.js"></script -->
|
||||
|
||||
<script type="text/javascript" src="/assets/js/core/libraries/jquery.min.js"></script>
|
||||
|
||||
<!-- link href="/assets/ext/css/bootstrap.css" rel="stylesheet" type="text/css" / -->
|
||||
|
||||
<link href="/site3/assets/css/custom/fullcalendar.bundle.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/site3/assets/css/custom/datatables.bundle.css" rel="stylesheet" type="text/css" />
|
||||
@@ -49,6 +49,8 @@ $server_name = 'https://'. $_SERVER['HTTP_HOST'];
|
||||
background-color: #4687ba;
|
||||
}
|
||||
</style>
|
||||
<!-- link href="/assets/ext/css/hack.css" rel="stylesheet" type="text/css" / -->
|
||||
<link href="/assets/js/plugins/trumbowyg/ui/trumbowyg.min.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<!--end::Head-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user