ovidner / djangocms-markdown Goto Github PK
View Code? Open in Web Editor NEWThis project forked from usgm/cmsplugin-markdown
A plugin for django-cms for adding content to your placeholders via Markdown with EpicEditor
License: MIT License
This project forked from usgm/cmsplugin-markdown
A plugin for django-cms for adding content to your placeholders via Markdown with EpicEditor
License: MIT License
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 CMS
object, 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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.