How to modify,remove or disable the buttons in aRTE HiSoftware editor?

1. Find defined.js file under the following location in the SharePoint server,
‘\Inetpub\wwwroot\wss\VirtualDirectories\80\ARTEeditor\editor\_source\internals\defined.js’

2. The default code in defined.js file is,

ARTEConfig.ToolbarSets[“Default”] = [
[‘Source’, ‘-‘, ‘Preview’, ‘-‘], // Removed Templates
[‘Cut’, ‘Copy’, ‘Paste’, ‘PasteWord’, ‘-‘, ‘Print’, ‘netSpellCheck’],
[‘Undo’, ‘Redo’, ‘-‘, ‘Find’, ‘Replace’, ‘-‘, ‘SelectAll’, ‘RemoveFormat’],
[‘Image’, ‘Table’, ‘Rule’, ‘Link’, ‘Unlink’, ‘Anchor’], // Thomas Removed SpecialChar Added Link Unlink Anchor
[‘Bold’, ‘Italic’, ‘Underline’, ‘StrikeThrough’, ‘-‘, ‘Subscript’, ‘Superscript’],
[‘OrderedList’, ‘UnorderedList’, ‘-‘, ‘Outdent’, ‘Indent’, ‘Blockquote’],
[‘JustifyLeft’, ‘JustifyCenter’, ‘JustifyRight’, ‘JustifyFull’],
//[‘Link’,’Unlink’,’Anchor’],
‘/’,
[‘Style’, ‘FontFormat’, ‘FontName’, ‘FontSize’]
// No comma for the last row.
] ;

aRTEdefault

3. Modify the default code with the code below,

ARTEConfig.ToolbarSets[“Default”] = [
[‘Preview’, ‘Cut’, ‘Copy’, ‘Paste’, ‘PasteWord’, ‘-‘, ‘Print’, ‘netSpellCheck’],
[‘Undo’, ‘Redo’, ‘-‘, ‘Find’, ‘Replace’, ‘-‘, ‘SelectAll’, ‘RemoveFormat’],
[‘JustifyLeft’, ‘JustifyCenter’, ‘JustifyRight’, ‘JustifyFull’],
[‘Image’,’Table’,’Link’,’Unlink’,’Anchor’], // Thomas Removed SpecialChar Added Link Unlink Anchor
[‘Bold’,’Italic’,’Underline’,’-‘,’Subscript’,’Superscript’],
[‘OrderedList’,’UnorderedList’,’-‘,’Outdent’,’Indent’,’Blockquote’],
‘/’,
[‘FontFormat’]
// No comma for the last row.

] ;

aRTEcustom

Advertisements

Diganta Kumar has architected and developed software for more than a decade for a wide range of industries and development platforms and over the years has filled many roles including program manager, founder, developer, architect, team lead, mentor and project manager. Diganta is founder of two online IT businesses. He is a certified AWS Solutions Architect, certified Professional Scrum Master (PSM I), certified Professional Scrum Developer (PSD I) and ITIL Certified. He has presented at Microsoft Tech.Ed, Microsoft AppFest and Ark Group Intranet conference. He attends AWS Seattle Official Events, Seattle AWS Architects-Engineers, and AWS Cloud Commerce user groups. He likes to help, mentor and manage software development teams to improve and produce great software. He currently work as a Senior Technical Program Manager for Amazon Web Services.

Tagged with:
Posted in SharePoint

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s