-{{*<script language="javascript" type="text/javascript">*}}
-
-
-<script>
-var editor=false;
-var textlen = 0;
-var plaintext = '{{$editselect}}';
-
-function initEditor(cb){
- if (editor==false){
- $("#profile-jot-text-loading").show();
- if(plaintext == 'none') {
- $("#profile-jot-text-loading").hide();
- //$("#profile-jot-text").addClass("profile-jot-text-full").removeClass("profile-jot-text-empty");
- $("#jot-category").show();
- $("#jot-category").addClass("jot-category-ex");
- $("#jot-profile-jot-wrapper").show();
- $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
- $("#profile-jot-text").bbco_autocomplete('bbcode');
- editor = true;
- $("a#jot-perms-icon").colorbox({
- 'inline' : true,
- 'transition' : 'elastic'
- });
- $(".jothidden").show();
- if (typeof cb!="undefined") cb();
- return;
- }
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: {{$editselect}},
- auto_focus: "profile-jot-text",
- plugins : "bbcode,paste,autoresize, inlinepopups",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- theme_advanced_resizing : true,
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: "{{$baseurl}}/view/custom_tinymce.css",
- theme_advanced_path : false,
- file_browser_callback : "fcFileBrowser",
- setup : function(ed) {
- cPopup = null;
- ed.onKeyDown.add(function(ed,e) {
- if(cPopup !== null)
- cPopup.onkey(e);
+<script type="text/javascript">
+ var editor=false;
+ var textlen = 0;
+ var plaintext = '{{$editselect}}';
+
+ function initEditor(cb){
+ if (editor==false){
+ $("#profile-jot-text-loading").show();
+ if(plaintext == 'none') {
+ $("#profile-jot-text-loading").hide();
+ //$("#profile-jot-text").addClass("profile-jot-text-full").removeClass("profile-jot-text-empty");
+ $("#jot-category").show();
+ $("#jot-category").addClass("jot-category-ex");
+ $("#jot-profile-jot-wrapper").show();
+ $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
+ $("#profile-jot-text").bbco_autocomplete('bbcode');
+ editor = true;
+ $("a#jot-perms-icon").colorbox({
+ 'inline' : true,
+ 'transition' : 'elastic'