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.
Configure html editor options/buttons etc.
Configure html editor options/buttons etc.
Henrik (V8 Developer Ed. - Windows)
Update
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.
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)
Re: Configure html editor options/buttons etc.
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
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.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: Configure html editor options/buttons etc.
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.
Re: Configure html editor options/buttons etc.
Update:
Here is how you do it in Kendo:
config.config.tools = ["formatting","bold","italic"];
Here is how you do it in Kendo:
config.config.tools = ["formatting","bold","italic"];
Henrik (V8 Developer Ed. - Windows)