displayNode()
Get the host node for the display controller.
Please note - this property requires the Editor extension for DataTables.
Description
Editor's ability to display its editing form using different display controllers (display) can be very useful to have the style of Editor fit seamlessly into your site. However, you may also wish to gather information from the display controller that is being used by Editor - adding styling information or other options for example.
This method provides the ability to access the node that the display controller uses for the form's display. Typically this will be a modal element, but it depends upon the display controller being used.
The node returned by the display controllers included in the Editor package are:
lightbox: The modal containerenvelope: The envelope containerbootstrap: The Bootstrap modal nodefoundation: The Foundation Reveal Modal nodejqueryui: jQuery UI dialog node.
Type
displayNode()
Get the display controller's host node - this is typically the modal element, although the exactly element returned will depend upon the display controller used (display).
Returns:
node: DOM element that is used as the display controller host
Example
Add a class to the display controller:
var node = editor.displayNode();
$(node).addClass('important');Related
The following options are directly related and may also be useful in your application development.