Focus Control FeaturesInitial Setup Features:- Now the focus will be handled automatically and when you are tabbing across the form it will be automatically transferred to the editor.
- To move out the focus from the editor to the next form field use SHIFT+TAB
- To be able to control programmatically the focus use the following properties:
FOCUS_OUTSIDE
Declare
Begin
FBean.Set_Property( 'HTMLEDITOR_AREA', 1, 'transferFocusOutside', 'true');
End;
=============================================================================
FOCUS_INSIDE
Declare
Begin
FBean.Set_Property( 'HTMLEDITOR_AREA', 1, 'transferFocusInside', 'true');
End;
Using the properties below you will be able to configure the following:
1) Make the editor generate single paragraph spacing:
FBean.Set_Property('HTMLEDITOR_AREA',1,'singleParagraphSpacing','true');
2) Set only a restricted list of available fonts:
FBean.set_property('HTMLEDITOR_AREA',1,'restrictedFontList','Arial,Verdana');
3) Set the default font to be used when typing text into the editor:
FBean.set_property('HTMLEDITOR_AREA',1,'defaultInitialFont','Arial');
4) Set the default font size to be used when typing text into the editor
FBean.set_property('HTMLEDITOR_AREA',1,'defaultInitialFontSize','10');
Here is the whole code when the form loads
WHEN-NEW-FORM-INSTANCE
Declare
vString1 varchar2(32000);
Begin
FBean.Set_Property('HTMLEDITOR_AREA',1,'singleParagraphSpacing','true');
FBean.set_property('HTMLEDITOR_AREA',1,'flowToolbarLayout','true');
FBean.set_property('HTMLEDITOR_AREA',1,'restrictedFontList','Arial,Verdana');
FBean.set_property('HTMLEDITOR_AREA',1,'defaultInitialFont','Arial');
FBean.set_property('HTMLEDITOR_AREA',1,'defaultInitialFontSize','10');
End;
Enable/Disable the editor
Now you can easily enable/disable the editor through the following property:
DISABLE_EDITOR
Declare
Begin
FBean.set_property('HTMLEDITOR_AREA',1,'enabled','false');
End;
=============================================================================
ENABLE_EDITOR
Declare
Begin
FBean.set_property('HTMLEDITOR_AREA',1,'enabled','true');
End;
Control the state of the document - edited or not
The code below illustrates how to use the document edited property:
1) Start the demo form
2) Click on "document edited" button on the form- it will print inside the text area -> documentEdited=false;
3) Now type some text inside the editor
4) Click again on the "document edited" button on the form - it will print inside the text area -> documentEdited=true;
Here is the code:
DOCUMENT_EDITED
Declare
vEdited boolean;
Begin
vEdited := FBean.Get_Bool_Property('HTMLEDITOR_AREA',1,'documentEdited');
if vEdited then
:block3.TEXT_AREA := 'documentEdited=true';
else
:block3.TEXT_AREA := 'documentEdited=false';
end if;
End;
Further this new release has improved rendering and text input, improved performance, improved memory consumption, the control of the F10 button now is passed to the underlying form so can be used directly.