Skip to content

Commit

Permalink
GH-93: Noop: Existing Plugins: Comments, New Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Jun 23, 2021
1 parent 3bf3ff8 commit 29e929e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion taccsite_cms/contrib/taccsite_blockquote/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from django.utils.translation import gettext_lazy as _

from taccsite_cms.contrib.helpers import concat_classnames

from taccsite_cms.contrib.taccsite_offset.models import get_direction_classname

from .models import TaccsiteBlockquote
Expand Down
4 changes: 4 additions & 0 deletions taccsite_cms/contrib/taccsite_sample/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class TaccsiteSamplePlugin(CMSPluginBase):
# NOTE: To change for all TACC plugins add taccsite_cms/templates/admin/...
# change_form_template = 'templates/plugin_change_form.html'
# NOTE: To change field widget and other attribute beyond `models.…Field`
# (Optionally, consider `formfield_overrides`:
# https://django.readthedocs.io/en/latest/ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.formfield_overrides)
# form = TaccsiteSamplePluginForm # TODO: Provide example

# FAQ: Sets tooltip of preview of this plugin within a Text plugin
Expand All @@ -39,6 +41,8 @@ def icon_alt(self, instance):
# def icon_src(self, instance)
# def text_editor_button_icon(...)

# Render

def render(self, context, instance, placeholder):
context = super().render(context, instance, placeholder)
request = context['request']
Expand Down

0 comments on commit 29e929e

Please sign in to comment.