I'm using a CKEditor 4.1.1 instance within my JavaFX apps' WebView
. When i hit the paste-button of the editor, a window opens that tells me that the security settings of the browser prevent clipboard access.
As the browser in this case is the WebView
component, how can i alter the according settings to enable clipboard access?
Test App:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class SimpleWebView extends Application {
public static void main(String[] args) { launch(args); }
@Override public void start(Stage stage) {
WebView webView = new WebView();
webView.getEngine().load("http://ckeditor.com/demo");
final Scene scene = new Scene(webView);
stage.setScene(scene);
stage.show();
}
}
To reproduce:
- Run the Test App, the ckeditor will display.
- Type come text in an external editor such as notepad and copy the text.
- Press the 3rd button to the right in the ckeditor toolbar.