Skip to main content

Wiris MathType

Wiris MathType is third-party tool to create math and chemistry formulas directly in an APEX application using Rich Text Editor Pro.

Test it on-line

The sample application page Math Type Wiris allows testing the tool right away!

License

license not included

Math Type for Froala editor is a paid solution, and the license is not included in the United Codes Rich Text Editor Pro. Using not registered license is allowed only for demo purposes.

The Math Type SaaS can't be purchased using the Wiris store. To purchase the license, don't hesitate to get in touch with the Wiris Team using sales@wiris.com.

Implementation guide

The implementation below describes implementing Wiris Math Type using cloud services. In order to test the tool in an application do the following:

  • download and upload Math Type Wiris JavaScript file to application files (or copy from the sample application files)
  • enable Math Type Wiris using the plug-in attribute Initialization PL/SQL Code.
Initialization PL/SQL Code
/* enable Math Wiris Type*/
UC_FROALA_RTE.g_plug_wiris_enable := true;

/* reference math wiris JavaScript file, the file can be copied from */
UC_FROALA_RTE.g_plug_wiris_js := '#APP_IMAGES#/wiris.js';

/* display Math formula icon in specified toolbar group and on given position*/
UC_FROALA_RTE.g_plug_wiris_editor_group := UC_FROALA_RTE.c_toolbar_group_rich;
UC_FROALA_RTE.g_plug_wiris_editor_pos := 1;

/* display Chemistry formula icon in specified toolbar group and on given position*/
UC_FROALA_RTE.g_plug_wiris_chemistry_group := UC_FROALA_RTE.c_toolbar_group_rich;
UC_FROALA_RTE.g_plug_wiris_chemistry_pos := 2;

Executing the code above will result in:

  • Enabling Wiris Math Type for page item implementing Rich Text Editor Pro
  • Adding Math Type button opening Math Formulas to the toolbar group rich at position 1
  • Adding Math Type button opening Chemistry Formulas to the toolbar group rich at position 2
PL/SQL Variables

The PL/SQL variables used to enable and configure Wiris MathType are described in the plug-in package documentation.

Restrict usage for specific user's roles

The example code below enables Wiris Math Type only for user's authorized using Math Type User authorization scheme defined in an application shared components.

Initialization PL/SQL Code
if APEX_AUTHORIZATION.IS_AUTHORIZED('Math Type User') then
UC_FROALA_RTE.g_plug_wiris_enable := true;
end if;