Reply to thread

That works perfectly, xf_phantom. Thank you kindly.


Your one line template modification disables the user tagging function.


I prefer to add the code to the editor_js_setup template directly and here's what I did.


[code]

<xen:require js="js/redactor/redactor.js" />

<xen:require js="js/xenforo/bb_code_edit.js" />

<xen:require css="editor_ui.css" />


<script>

/* added code to disable user tagging */

XenForo.BbCodeWysiwygEditor.prototype.initAutoComplete = function(){};


if (typeof RELANG === 'undefined')

{

   var RELANG = {};

}


RELANG.xf = {

   image: "{xen:jsescape {xen:phrase image}}",

   link: "{xen:jsescape {xen:phrase link}}",

   link_insert: "{xen:jsescape {xen:phrase link}}",

   unlink: "{xen:jsescape {xen:phrase unlink}}",

   quote: "{xen:jsescape {xen:phrase quote}}",

   code: "{xen:jsescape {xen:phrase code}}",

   bold: "{xen:jsescape {xen:phrase bold_ctrl_b}}",

   italic: "{xen:jsescape {xen:phrase italic_ctrl_i}}",

   fontcolor: "{xen:jsescape {xen:phrase text_color}}",

   unorderedlist: "{xen:jsescape {xen:phrase unordered_list}}",

   orderedlist: "{xen:jsescape {xen:phrase ordered_list}}",

   outdent: "{xen:jsescape {xen:phrase outdent}}",

   indent: "{xen:jsescape {xen:phrase indent}}",

   none: "{xen:jsescape {xen:phrase none}}",

   align_left:   "{xen:jsescape {xen:phrase align_left}}",

   align_center: "{xen:jsescape {xen:phrase align_center}}",

   align_right: "{xen:jsescape {xen:phrase align_right}}",

   deleted: "{xen:jsescape {xen:phrase strike_through}}",

   underline: "{xen:jsescape {xen:phrase underline_ctrl_u}}",

   alignment: "{xen:jsescape {xen:phrase alignment}}",

   undo: "{xen:jsescape {xen:phrase undo_ctrl_z}}",

   redo: "{xen:jsescape {xen:phrase redo_ctrl_y}}",


   remove_formatting: "{xen:jsescape {xen:phrase remove_formatting}}",

   font_size: "{xen:jsescape {xen:phrase font_size}}",

   font_family: "{xen:jsescape {xen:phrase font_family}}",

   smilies: "{xen:jsescape {xen:phrase smilies}}",

   media: "{xen:jsescape {xen:phrase media}}",

 

   drafts: "{xen:jsescape {xen:phrase drafts}}",

   save_draft: "{xen:jsescape {xen:phrase save_draft}}",

   delete_draft: "{xen:jsescape {xen:phrase delete_draft}}",

   draft_saved: "{xen:jsescape {xen:phrase draft_saved}}",

   draft_deleted: "{xen:jsescape {xen:phrase draft_deleted}}",


   switch_mode_bb: "{xen:jsescape {xen:phrase use_bb_code_editor}}",

   switch_mode_rich: "{xen:jsescape {xen:phrase use_rich_text_editor}}",

 

   reply_placeholder: "{xen:jsescape {xen:phrase reply_placeholder}}",

 

   drop_files_here_to_upload: "{xen:jsescape {xen:phrase drop_files_here_to_upload}}",

   uploads_are_not_available: "{xen:jsescape {xen:phrase uploads_are_not_available}}"

};

</script>

[/code]


Back
Top Bottom