rbf_isNewUI()
Purpose
A check used to guard NewUI specific functions.
Note:
If your Platform application pages are rendered in both ClassicUI and NewUI (selectively for different subset of users), then all NewUI specific client-side SDK functions/features should be guarded with this check.
This method is not supported in portals.
Syntax
rbf_isNewUI()
Parameters
None
Example
The following example turns off the direction attribute to all paragraph elements inside Rich Text Editor.
<script>
try {
if (!rbf_isNewUI()) {
throw 'This Script is written for New UI';
}
//Set to false to turned this featured off.. Default it is enabled
rb.newui.options.richEditor.addAutoDirectionAttribute = false;
}
catch (err) {
if (console) {
console.log(err);
}
}
</script>