Skip to content

uralbash/pyramid_elfinder

 
 

Repository files navigation

Build Status Coveralls Stories in Ready

Forked from elfinder-pyramid writed by Aleksandr Rakov

connector.py

This is conector for elfinder file manager, written for pyramid framework. Based on original https://github.com/Studio-42/elfinder-python/blob/master/connector.py and https://github.com/Studio-42/elfinder-python/blob/master/elFinder.py

Now you can find connector there http://github.com/ITCase/elfinder

How to try it:

In your virtualenv run:

$ git clone https://github.com/ITCase/pyramid_elfinder.git
$ cd pyramid_elfinder/example
$ python pyramid_elfinder_example.py

And open http://127.0.0.1:6543/ in your browser. Done!

Install to app:

add to config:

config.include('pyramid_elfinder')

goto http://localhost:6543/elfinder/

TinyMCE:

<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
{% include 'elfinder/tinymce.jinja2' %}
<script>
  tinymce.init({
    selector:'textarea.tinymce',
    browser_spellcheck : true,
    content_css: ["/static_extra/css/tu.css", "/static_extra/css/mytiny.css"],
    plugins: "image link code contextmenu fullpage fullscreen "+
            "hr insertdatetime lists media paste preview "+
            "print table textcolor "+
            "visualchars wordcount",
    toolbar1: "fullpage preview print forecolor backcolor inserttable",
    toolbar2: "styleselect formatselect fontselect fontsizeselect cut copy paste  removeformat subscript superscript",
    toolbar3: "undo redo | bold italic underline strikethrough | bullist numlist outdent indent blockquote | alignleft aligncenter alignright alignjustify |",
    file_browser_callback: elFinderBrowser,
  });
</script>
<textarea class="tinymce"></textarea>

Notes:

  • This connector support only v.1 protocol
  • requires PIL for thumbnail generator

About

elfinder connector for pyramid framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.1%
  • CSS 6.4%
  • Python 1.1%
  • Other 0.4%