我在ckeditor中集成KCFinder有问题.我的ckeditor的版本是4.0而另一个(KCFinder版本)是2.52-dev.
您好配置ckeditor的config.js:
CKEDITOR.config.baseHref = "/ckeditor/";
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.contentsCss = 'contents.css';
config.language= 'it';
config.height = '400px';
config.uiColor = '#ffDC6E';
//kcfinder per l'uoload delle immagini
config.filebrowserBrowseUrl = 'kcfinder-2.51/browse.php?type=files';
config.filebrowserImageBrowseUrl = 'kcfinder-2.51/browse.php?type=images';
config.filebrowserFlashBrowseUrl = 'kcfinder-2.51/browse.php?type=flash';
config.filebrowserUploadUrl = '../../../reserved/kcfinder-2.51/upload.php?type=files';
config.filebrowserImageUploadUrl = '../../../reserved/kcfinder-2.51/upload.php?type=images';
config.filebrowserFlashUploadUrl = '../../../reserved/kcfinder-2.51/upload.php?type=flash';
// Remove some buttons, provided by the standard plugins, which we don't
// need to have in the Standard(s) toolbar.
config.removeButtons …Run Code Online (Sandbox Code Playgroud) 我有CefSharp和js沟通的问题.这是我的结构.在我的MainWindow.xaml.cs中,我有:
chromium = new CefSharp.Wpf.ChromiumWebBrowser();
chromium.RegisterJsObject("jsInterface", new jsMapInterface());
Run Code Online (Sandbox Code Playgroud)
其中jsMapInterface是一个带有方法的公共类.
在我的html/js文件夹中,我调用了一个C#方法:
window.jsInterface.myTest();
//jsInterface.myTest(); //I have tested twice
Run Code Online (Sandbox Code Playgroud)
其中myTest()是jsMapInterface类中的一个方法,但没有任何反应.我的错误在哪里?
谢谢你的建议.