/source/Plug-in/kind/examples/file-manager.html
http://prosporous.googlecode.com/ · HTML · 32 lines · 32 code · 0 blank · 0 comment · 0 complexity · 617870143b011d1fc29a535f15062b4d MD5 · raw file
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>FileManager Examples</title>
- <link rel="stylesheet" href="../themes/default/default.css" />
- <script src="../kindeditor.js"></script>
- <script src="../lang/zh_CN.js"></script>
- <script>
- KindEditor.ready(function(K) {
- var editor = K.editor({
- fileManagerJson : '../php/file_manager_json.php'
- });
- K('#filemanager').click(function() {
- editor.loadPlugin('filemanager', function() {
- editor.plugin.filemanagerDialog({
- viewType : 'VIEW',
- dirName : 'image',
- clickFn : function(url, title) {
- K('#url').val(url);
- editor.hideDialog();
- }
- });
- });
- });
- });
- </script>
- </head>
- <body>
- <input type="text" id="url" value="" /> <input type="button" id="filemanager" value="?????" />
- </body>
- </html>