PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
sand
15 sec ago
Untitled
32 sec ago
Untitled
11 sec ago
Untitled
15 sec ago
Untitled
17 sec ago
Untitled
17 sec ago
Untitled
22 sec ago
Untitled
25 sec ago
Untitled
By: a guest on
Jun 11th, 2012
| syntax:
None
| size: 0.28 KB | hits: 11 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
Show TinyMCE when use is logged in otherwise not
@if (HttpContext.Current.User.IsInRole("Administrator")) {
<script type="text/javascript">
$(function() {
$('#mytextarea').tinymce({
// tinymce config
});
});
</script>
}
create a
new version
of this paste
RAW Paste Data
Show TinyMCE when use is logged in otherwise not @if (HttpContext.Current.User.IsInRole("Administrator")) { <script type="text/javascript"> $(function() { $('#mytextarea').tinymce({ // tinymce config }); }); </script> }