Sha256: 53d3979369a00d84be72039a77950ce20c709689e3df54f7392319d6c3905ccb

Contents?: true

Size: 1.96 KB

Versions: 22

Compression:

Stored size: 1.96 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>File Manager</title>

  <link rel="stylesheet" type="text/css" media="screen" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css" />
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>

  <script type="text/javascript" src="/elfinder/js/elfinder.min.js"></script>
  <script src="/elfinder/js/proxy/elFinderSupportVer1.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" src="/elfinder/js/i18n/elfinder.ru.js"></script>

  <link rel="stylesheet" type="text/css" media="screen" href="/elfinder/css/elfinder.min.css">
  <link rel="stylesheet" type="text/css" media="screen" href="/elfinder/css/theme.css">

</head>
<body>

<div id="elfinder"></div>

<script type="text/javascript">
  var FileBrowserDialogue = {
    init: function() {
      // Here goes your code for setting your custom things onLoad.
    },
    mySubmit: function (URL) {
      // pass selected file path to TinyMCE
      parent.tinymce.activeEditor.windowManager.getParams().setUrl(URL);

      // close popup window
      parent.tinymce.activeEditor.windowManager.close();
    }
  }

  $().ready(function() {
    var rails_csrf = {};
    rails_csrf[$('meta[name=csrf-param]').attr('content')] = $('meta[name=csrf-token]').attr('content');

    var elf = $('#elfinder').elfinder({
      // set your elFinder options here
      url: '/elfinder',  // connector URL
      transport : new elFinderSupportVer1(),

      getFileCallback: function(file) { // editor callback
        // file.url - commandsOptions.getfile.onlyURL = false (default)
        // file     - commandsOptions.getfile.onlyURL = true
        FileBrowserDialogue.mySubmit(file); // pass selected file path to TinyMCE
      }
    }).elfinder('instance');
  });
</script>

</body>
</html>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
optimacms-0.3.9 app/views/optimacms/elfinder/index.html.erb
optimacms-0.3.8 app/views/optimacms/elfinder/index.html.erb
optimacms-0.3.7 app/views/optimacms/elfinder/index.html.erb
optimacms-0.3.6 app/views/optimacms/elfinder/index.html.erb
optimacms-0.3.5 app/views/optimacms/elfinder/index.html.erb
optimacms-0.3.2 app/views/optimacms/elfinder/index.html.erb
optimacms-0.3.1 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.23 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.22 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.19 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.18 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.17 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.8 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.7 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.6 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.5 app/views/optimacms/elfinder/index.html.erb
optimacms-0.1.60 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.2 app/views/optimacms/elfinder/index.html.erb
optimacms-0.2.1 app/views/optimacms/elfinder/index.html.erb
optimacms-0.1.55 app/views/optimacms/elfinder/index.html.erb