Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1536 closed defect (fixed)

Xinha.Config.bodyClass and Xinha.Config.bodyID are undocumented

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.97
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc: ejucovy@…

Description

The bodyClass and bodyID options of Xinha.Config are undocumented in the code.

This patch provides documentation for these options' existence, function and default behavior:

Index: XinhaCore.js
===================================================================
--- XinhaCore.js	(revision 1270)
+++ XinhaCore.js	(working copy)
@@ -1186,6 +1186,22 @@
     "a": [function(e, target) {e._createLink(target);}],
     "img": [function(e, target) {e._insertImage(target);}]
   };
+
+ /**
+  * HTML class attribute to apply to the <body> tag within the editor's iframe.
+  * If it is not specified, no class will be set.
+  * 
+  *  Default: <code>null</code>
+  */
+  this.bodyClass = null;
+
+ /**
+  * HTML ID attribute to apply to the <body> tag within the editor's iframe.
+  * If it is not specified, no ID will be set.
+  * 
+  *  Default: <code>null</code>
+  */
+  this.bodyID = null;
   
   /** A container for additional icons that may be swapped within one button (like fullscreen)
    * @private

Attachments (1)

bodyclass.diff (828 bytes) - added by guest 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by guest

comment:1 Changed 7 years ago by ejucovy

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 7 years ago by ejucovy

  • Milestone set to 0.97
Note: See TracTickets for help on using tickets.