/** * Set the default HTML version to use. This sets the HTML version in the * {@link HCSettings} class and performs some additional modifications * depending on the chosen version. * * @param eHTMLVersion * The HTML version to use. May not be <code>null</code>. */ public static void setDefaultHTMLVersion (@Nonnull final EHTMLVersion eHTMLVersion) { ValueEnforcer.notNull (eHTMLVersion, "HTMLVersion"); // Update the HCSettings getMutableConversionSettings ().setHTMLVersion (eHTMLVersion); // Update the XMLWriterSettings getMutableConversionSettings ().setXMLWriterSettings (HCConversionSettings.createDefaultXMLWriterSettings (eHTMLVersion)); s_aLogger.info ("Default HTML version set to " + eHTMLVersion); if (eHTMLVersion.isAtLeastHTML5 ()) { // No need to put anything in a comment if (getScriptInlineMode () != EHCScriptInlineMode.PLAIN_TEXT_NO_ESCAPE) setScriptInlineMode (EHCScriptInlineMode.PLAIN_TEXT_NO_ESCAPE); } else { // Use default mode if (getScriptInlineMode () != DEFAULT_SCRIPT_INLINE_MODE) setScriptInlineMode (DEFAULT_SCRIPT_INLINE_MODE); } }
.setCtrl (String.valueOf (HCSettings.getOnDocumentReadyProvider ()))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_SCRIPT_INLINE_MODE.getDisplayText (aDisplayLocale)) .setCtrl (HCSettings.getScriptInlineMode ().name ())); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_STYLE_INLINE_MODE.getDisplayText (aDisplayLocale)) .setCtrl (HCSettings.getStyleInlineMode ().name ()));
.setCtrl (String.valueOf (HCSettings.getOnDocumentReadyProvider ()))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_SCRIPT_INLINE_MODE.getDisplayText (aDisplayLocale)) .setCtrl (HCSettings.getScriptInlineMode ().name ())); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_STYLE_INLINE_MODE.getDisplayText (aDisplayLocale)) .setCtrl (HCSettings.getStyleInlineMode ().name ()));