Commit 37cf9f81 authored by Matija Obreza's avatar Matija Obreza
Browse files

Load TinyMCE when needed only

parent 172d37af
......@@ -33,9 +33,6 @@
<script type="text/javascript" src="/html/js/handlebars.js"></script> -->
<script type="text/javascript" src="/html/js/bootstrap.min.js"></script>
<sec:authorize access="! isAnonymous()">
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
</sec:authorize>
<script type="text/javascript" src="/html/js/crophub.js"></script>
<!--
--><!-- <script type="text/javascript" src="/html/js/main.js"></script>
......
......@@ -32,9 +32,6 @@
<script type="text/javascript" src="/html/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="/html/js/handlebars.js"></script> -->
<script type="text/javascript" src="/html/js/bootstrap.min.js"></script>
<sec:authorize access="! isAnonymous()">
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
</sec:authorize>
<script type="text/javascript" src="/html/js/crophub.js"></script>
<!--
-->
......
......@@ -5,6 +5,7 @@
<html>
<head>
<title>${title}</title>
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
</head>
<body>
<h1>
......
......@@ -5,6 +5,7 @@
<html>
<head>
<title><spring:message code="country.page.profile.title" arguments="${country.name}" argumentSeparator="|" /></title>
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
</head>
<body>
<h1>
......@@ -33,7 +34,8 @@
selector : "#blurp-body.html-editor",
menubar : false,
statusbar : false,
height : 200
height : 200,
directionality: document.dir
});
});
</script>
......
......@@ -5,6 +5,7 @@
<html>
<head>
<title><spring:message code="organization.page.profile.title" arguments="${organization.slug}" argumentSeparator="|" /></title>
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
</head>
<body>
<h1>
......@@ -47,7 +48,8 @@
selector : ".html-editor",
menubar : false,
statusbar : false,
height : 200
height : 200,
directionality: document.dir
});
});
</script>
......
......@@ -5,6 +5,7 @@
<html>
<head>
<title><spring:message code="faoInstitutes.page.profile.title" arguments="${faoInstitute.fullName}" argumentSeparator="|" /></title>
<script type="text/javascript" src="/html/js/tinymce/tinymce.min.js"></script>
</head>
<body>
<h1>
......@@ -33,7 +34,8 @@
selector : "#blurp-body.html-editor",
menubar : false,
statusbar : false,
height : 200
height : 200,
directionality: document.dir
});
});
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment