maybe someone of you had this situation.
Im using the html area from servoy extra components in my TI project.
Now i have a html element in my form and i change the tinyMCE options in the onLoad() of the form like this:
- Code: Select all
/**
* @properties={typeid:35,uuid:"706A860D-EBBE-4EE3-B80D-85791BB2F1D4",variableType:-4}
*/
var TinyMCESettings2 = {
toolbar : "false",
menubar : "false"
}
/**
* Callback method when form is (re)loaded.
*
* @param {JSEvent} event the event that triggered the action
*
* @properties={typeid:24,uuid:"02BFA8F8-FA0E-4BD0-94E0-1E1DD0370DB6"}
*/
function onLoad(event) {
elements.html1.putClientProperty(UICONSTANTS.HTML_EDITOR_CONFIGURATION,TinyMCESettings2)
}
Now what i really want is, in the onFocus() of the html area i want the toolbar and menubar appear and in the onFocusLost() event i want them gone again.
Do you have any idea? Or am i bound to set the html area only in the onLoad() of the form.
Thanks and greetings.