Configure html editor options/buttons etc.

Contains tips for configurators working with Aware IM
Post Reply
hpl123
Posts: 2366
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Configure html editor options/buttons etc.

Post by hpl123 »

Hi all,
This is tip on how to configure the html editor options for example which buttons / commands available etc. NB: This is a core extjs hack and affects all applications. It might be possible to do this per application, haven´t tried this yet (if you do and find a solution please share your findings).

1. Open file: C:\AwareIM\Tomcat\webapps\AwareIM\ext-4.1.0\ext-all.js

2. Search for "enableformat" (this is one of the commands you can change and in this same "code" segment there are also other commands e.g. lists, fonts etc. etc.

3. Change settings for exampel FROM: "enableFormat:true;" TO "enableFormat:false;" to disable the format options.
Henrik (V8 Developer Ed. - Windows)
hpl123
Posts: 2366
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Update

Post by hpl123 »

Update:
Here is how you do it per attribute i.e. in a single htmleditor attribute:

1. Open the attribute with the html editor

2. Go to the "Presentation" options and choose "Advanced" option

3. Type in the setting you want to change and start the setting code with "c." e.g. "c.enableFormat=false;". Use the last entry in this post to find the options you can change alternatively browse the extjs documentation.

NB: I have tried this for the format options only and think it will work for the other options as well.
Henrik (V8 Developer Ed. - Windows)
RLJB
Posts: 880
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: Configure html editor options/buttons etc.

Post by RLJB »

Good tip - tks Hendrik.

Reference of other elements to show/hide from toolbar can be found here:

http://dev.sencha.com/playpen/docs/outp ... ditor.html
Rod. Aware 8.3 (latest build), Developer Edition, on OS Linux (Ubuntu 18) using GUI hosted on AWS EC2, MYSQL on AWS RDS
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Configure html editor options/buttons etc.

Post by BenHayat »

Thanks Henrik; But I wish that option was available in Aware per form that we could check, so Aware at runtime would instruct EXTJS to show/hide format.
hpl123
Posts: 2366
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Configure html editor options/buttons etc.

Post by hpl123 »

Update:
Here is how you do it in Kendo:
config.config.tools = ["formatting","bold","italic"];
Henrik (V8 Developer Ed. - Windows)
Post Reply