Skip to main content

Functions

The plug-in package UC_FROALA_RTE exposes PL/SQL functions to be used in custom development.

access_token_validate

The function validates the encoded access token string and returns true if a given string is a valid access token encoded string. Otherwise, the function returns false.

UC_FROALA_RTE.access_token_validate (   
p_access_token in varchar2
) return boolean;
access_token_validate Deprecated since v23.2.3

Use the access token type member or static function is_valid to validate encoded access token in RESTful service handlers.

clobGetHTML

Signature 1

The function returns the given CLOB value with optional extra HTML code, ensuring that rich text formatting is the same as in the plug-in editor.

UC_FROALA_RTE.clobGetHTML(
p_clob in CLOB,
p_include_css in BOOLEAN default false
) return CLOB;

Signature 2

The function returns the value of the given page item with extra HTML code, ensuring that rich text formatting is the same as in the plug-in editor.

UC_FROALA_RTE.clobGetHTML(
p_item_name in VARCHAR2,
p_include_css in BOOLEAN default false
) return CLOB;

getChecksum

The function calculates and returns the current checksum for the given CLOB value.

UC_FROALA_RTE.getChecksum(
p_clob IN CLOB
) return number;

getValue

Function returns rich text document currently stored as draft CLOB in the plug-in session state. Function accepts only one argument - APEX page item name.

UC_FROALA_RTE.getValue(   
p_item_name in VARCHAR2
) return CLOB;

setValue

Signature 1

The function sets the draft CLOB value in the plug-in session state and attempts to set a page item value in the APEX session state (using APEX_UTIL.SET_SESSION_STATE). The function returns the checksum of the given CLOB.

Learn more

Learn more about draft CLOB in plug-in session state.

UC_FROALA_RTE.setValue(   
p_item_name in varchar2,
p_value in CLOB
) return varchar2;

Signature 2

The function sets the on-load or draft CLOB value in the plug-in session state based on the given CLOB value and page item. The function returns the checksum of the given CLOB.

Learn more

Learn more about differences between on-load and draft CLOB in plug-in session state.

UC_FROALA_RTE.setValue( 
p_item_name in varchar2,
p_type in varchar2,
p_value in CLOB,
p_set_session in boolean default true
) return varchar2;