Git Product home page Git Product logo

django-ace-overlay's Introduction

django-ace-overlay

This is an implementation of the Ace Editor for Django, which uses an overlay to edit code instead of editing it directly. This is particularly useful when you are using a code editor in conjunction with inlines -- which gives you a scrolling window inside a scrolling window, enough to drive a person insane.

CKEditor Dialog

By default, all code is visible in the admin as read-only text. Clicking the text opens the editor overlay. CKEditor Dialog

Example Usage

    $ pip install django-ace-overlay
    #settings.py

    INSTALLED_APPS = (
        ...
        ace_overlay,
        ...
    )
    #forms.py

    from django import forms
	from ace_overlay.widgets import AceOverlayWidget
	from .models import Template


	class TemplateAdminForm(forms.ModelForm):

	    custom_template = forms.CharField(widget=AceOverlayWidget(mode='html', wordwrap=False, theme='twilight', width="850px", height="800px", showprintmargin=True), required=False)
	    
	    class Meta:
	    	model = Template

django-ace-overlay's People

Contributors

arnau126 avatar arthexis avatar cstrap avatar ninapavlich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-ace-overlay's Issues

Dependency on django-grapelli

Been trying to get this running in a plain Django 1.9 admin, but hitting this

ReferenceError: Can't find variable: grp

which looks like it's this line in widget.js

    $ = grp.jQuery;

I couldn't find anything that noted django-grapelli as a requirement -- did I miss something? If not, it'd be handy to note this in the README.

Cheers!
Steve

Tab not working

Hello,

Great package, the overlay is really nice. However, the "Tab" functionality is disabled or not working.

Any idea how to enable or how to fix?

Thanks,
Alex

PyPI package size for v0.6

The package currently published on PyPI includes the .git and dist folders, and this brings the file size to almost 28MB, when it should probably be something around 2.5MB.

Everything else looks OK. It's just a matter of download size and disk occupation.

Font size option?

Hello, I really like this widget. I write a blog app now and this widget I use to edit posts in markdown. My problem with the default Ace editor is that it comes with a small font size by default.
As I understand to increase the font size I'd need to access the Editor object and use the setFontSize method. Is it possible to tap into it with a custom JS attached to the blog app? Thank you for your help!

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.