Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
JR Utily
2016-10-09 21:39:34 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
318602840aaa03cc3bf2e59259b7306478299646
31860284
1 parent
bb91224b
- JS script to manage include of tinymce lib just once
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
src/main/webapp/updateUser.xhtml
src/main/webapp/updateUser.xhtml
View file @
3186028
...
...
@@ -19,15 +19,35 @@
<!-- content -->
<!-- <ui:define name="content">-->
<head>
<script
type=
"text/javascript"
src=
"resources/tinymce/tinymce.js"
></script>
<script
type=
"text/javascript"
>
<head
jsf:id=
"head"
>
<script
jsf:id=
"tinymce"
jsf:target=
"head"
type=
"text/javascript"
>
// Adding the script tag to the head as suggested before
var
head
=
document
.
getElementsByTagName
(
'head'
)[
0
];
var
script
=
document
.
createElement
(
'script'
);
script
.
type
=
'text/javascript'
;
script
.
src
=
'resources/tinymce/tinymce.js'
;
var
callback
=
function
(){
tinymce
.
init
({
selector
:
'textarea.mytinymce'
});
};
// Then bind the event to the callback function.
// There are several events for cross browser compatibility.
script
.
onreadystatechange
=
callback
;
script
.
onload
=
callback
;
// Fire the loading
head
.
appendChild
(
script
);
</script>
</head>
<body>
<body
jsf:id=
"body"
>
<h2><h:outputText
value=
"Cration "
rendered=
"#{empty(updateUserBean.userId)}"
/>
...
...
Please
register
or
login
to post a comment