Giter Site home page Giter Site logo

self.attrs problem about django-markdownx HOT 10 CLOSED

neutronx avatar neutronx commented on May 24, 2024
self.attrs problem

from django-markdownx.

Comments (10)

adi- avatar adi- commented on May 24, 2024

Please paste more details. What kind of problems you are experiencing? Have you checked if markdown.css and markdown.js are downloaded correctly?

from django-markdownx.

sh0416 avatar sh0416 commented on May 24, 2024

When I use your pure MarkdownxWidget, 'form-control' doesn't appear in the class attribute of textarea in the HTML file. However, I used that class MarkdownxWidgetImproved, 'form-control' appear in the class attribute of textarea in HTML file. template is just {{ form.content }}. Other functionality is well working, just that feature doesn't work.

I saw your logic, and I think attrs in the parameter is newly added attribute and self.attrs exists in the class so that I add that logic.

from django-markdownx.

adi- avatar adi- commented on May 24, 2024

Have u checked it with v1.7?

from django-markdownx.

adi- avatar adi- commented on May 24, 2024

It was published on Saturday.

from django-markdownx.

sh0416 avatar sh0416 commented on May 24, 2024

Yes, I take package before 3 hours ago. I'll give you some example core for this. wait a minute.

from django-markdownx.

sh0416 avatar sh0416 commented on May 24, 2024

Code is here. https://github.com/sh0416/markdown_example

I didn't apply bootstrap so you can check with pure html;; sorry;;
Also, the difference can check in views.py.

from django-markdownx.

sh0416 avatar sh0416 commented on May 24, 2024

You doesn't mention about this kind of usage, but I think this should be also well worked.. :)

My development environment is python3, django1.10.5.

from django-markdownx.

adi- avatar adi- commented on May 24, 2024

Yes, I have spotted the bug. Fix is on the way!

from django-markdownx.

adi- avatar adi- commented on May 24, 2024

https://github.com/adi-/django-markdownx/releases/tag/v1.7.1 should fix your issue.

from django-markdownx.

adi- avatar adi- commented on May 24, 2024

It is already on PyPi

from django-markdownx.

Related Issues (20)

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.