01.
<script src=
"../../_library/js/jquery-1.9.1.min.js"
type=
"text/javascript"
></script>
02.
<script type=
"text/javascript"
src=
"../../_library/js/tiny_mce/tiny_mce.js"
></script>
03.
<script type=
"text/javascript"
>
04.
tinyMCE.activeEditor.selection.setContent(
'<strong>Some contents</strong>'
);
05.
</script>
06.
<script type=
"text/javascript"
>
07.
08.
tinyMCE.init({
09.
10.
mode :
"specific_textareas"
,
11.
editor_selector :
"myTextEditor"
,
12.
theme :
"advanced"
,
13.
plugins :
"autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,maxchars"
,
14.
15.
16.
theme_advanced_buttons1 :
"save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"
,
17.
theme_advanced_buttons2 :
"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"
,
18.
theme_advanced_buttons3 :
"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen"
,
19.
theme_advanced_buttons4 :
"insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage"
,
20.
theme_advanced_toolbar_location :
"top"
,
21.
theme_advanced_toolbar_align :
"left"
,
22.
theme_advanced_statusbar_location :
"bottom"
,
23.
theme_advanced_resizing : true,
24.
25.
26.
skin :
"o2k7"
,
27.
skin_variant :
"silver"
,
28.
29.
30.
max_chars : 500,
31.
max_chars_indicator :
"lengthBox"
,
32.
33.
34.
content_css :
"css/example.css"
,
35.
36.
37.
template_external_list_url :
"js/template_list.js"
,
38.
external_link_list_url :
"js/link_list.js"
,
39.
external_image_list_url :
"js/image_list.js"
,
40.
media_external_list_url :
"js/media_list.js"
,
41.
42.
43.
template_replace_values : {
44.
username :
"Some User"
,
45.
staffid :
"991234"
46.
}
47.
});
48.
</script>-->
49.
50.
<textarea name=
"detail"
wrap=
"VIRTUAL"
class
=
"myTextEditor"
id=
"detail"
><?=
$anews
[
"detail"
]?></textarea>
51.
52.
<!-- /TinyMCE -->