Coder Social home page Coder Social logo

ovidner / djangocms-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from usgm/cmsplugin-markdown

1.0 1.0 2.0 290 KB

A plugin for django-cms for adding content to your placeholders via Markdown with EpicEditor

License: MIT License

Python 4.92% JavaScript 82.86% CSS 10.95% HTML 1.27%

djangocms-markdown's People

Contributors

kelketek avatar mbrochh avatar niconoe avatar ovidner avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

niconoe easen

djangocms-markdown's Issues

JS errors if jQuery not included in user page

Hi,

I just noticed that opening the editor threw JS errors if the end-user has not manually included jQuery in its page/template. You can reproduce the error by creating a blank project using djangocms-installer.

The error happens at line 22 and 23 of change_form.html:

minHeight: window.parent.$('.cms_modal-frame').height() - 20,
maxHeight: window.parent.$('.cms_modal-frame').height() - 20

It happens because as long as jQuery was not included by the user, window.parent.$is undefined. I suggest using instead the jQuery copy provided by the Django-CMS in the CMSobject, such as:

minHeight: window.parent.CMS.$('.cms_modal-frame').height() - 20,
maxHeight: window.parent.CMS.$('.cms_modal-frame').height() - 20

I tested on my install and it seems to work fine. I'll submit a pull request in a second.

With Django 1.8, gives "There is no South database module" error

I'm using Django 1.8. When I installed this and run python manage.py migrate, I got this error:

There is no South database module 'south.db.mysql' for your database. Please either choose a supported database, check for SOUTH_DATABASE_ADAPTER[S] settings, or remove South from INSTALLED_APPS.

Apparently, all you need to do to fix it was to uninstall South. When I tried it, it worked!

Maybe setup.py should check which Django version is used before including South as a dependency. Or maybe, this module can just be updated for newer Django versions, leaving older Django versions behind.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.