1 package org.jahia.services.htmleditors; 2 3 11 12 public class MSHTMLCompatibilityTester implements EditorCompatibilityTesteable { 13 14 public MSHTMLCompatibilityTester() { 15 } 16 17 public boolean isCompatible(ClientCapabilities clientCapabilities) { 18 String clientAgent = clientCapabilities.getClientAgent(); 19 if (!(clientAgent.indexOf("MSIE") != -1)) { 20 return false; 21 } 22 if (!(clientAgent.indexOf("Windows") != -1)) { 23 return false; 24 } 25 return true; 26 } 27 28 } | Popular Tags |