--- old/modules/javafx.web/src/main/java/javafx/scene/web/HTMLEditorSkin.java 2017-11-27 12:28:02.641314000 +0530 +++ new/modules/javafx.web/src/main/java/javafx/scene/web/HTMLEditorSkin.java 2017-11-27 12:28:02.369178000 +0530 @@ -69,6 +69,7 @@ import com.sun.javafx.scene.control.skin.FXVK; import com.sun.javafx.scene.web.behavior.HTMLEditorBehavior; +import com.sun.webkit.dom.HTMLDocumentImpl; import com.sun.webkit.WebPage; import com.sun.javafx.webkit.Accessor; @@ -443,6 +444,7 @@ if (newValue.doubleValue() == totalWork) { cachedHTMLText = null; Platform.runLater(() -> { + setDesignMode("on"); setContentEditable(true); updateToolbarState(true); updateNodeOrientation(); @@ -1104,6 +1106,11 @@ htmlBodyElement.setAttribute("contenteditable", Boolean.toString(b)); } + private void setDesignMode(String mode) { + HTMLDocumentImpl htmlDocumentImpl = (HTMLDocumentImpl)webPage.getDocument(webPage.getMainFrame()); + htmlDocumentImpl.setDesignMode(mode); + } + private boolean getCommandState(String command) { return webPage.queryCommandState(command); }