# Path: tinymce_4/widgets.py
# class TinyMCEFullWidget(TinyMCEWidget):
#     '''
#     Textarea form widget with support TinyMCE.
#     See: http://www.tinymce.com/wiki.php/TinyMCE
#     This is widget for full config TinyMCE.
#     '''
# 
#     class Media:
#         js = [
#             'tinymce_4/settings/full/settings.js',
#             'tinymce_4/settings/full/custom_style_formats.js',
#             'tinymce_4/settings/full/external_plugins.js',
#             'tinymce_4/settings/full/image_class_list.js',
#             'tinymce_4/settings/full/menu.js',
#             'tinymce_4/settings/full/language_url.js',
#             'tinymce_4/settings/full/plugins.js',
#             'tinymce_4/settings/full/style_formats.js',
#             'tinymce_4/settings/full/table_class_list.js',
#             'tinymce_4/settings/full/templates.js',
#             'tinymce_4/settings/full.js',
#         ]
# 
# class TinyMCESmallWidget(TinyMCEWidget):
#     """
#     Textarea form widget with support TinyMCE.
#     See: http://www.tinymce.com/wiki.php/TinyMCE
#     This is widget for small config TinyMCE.
#     """
# 
#     class Media:
#         js = [
#             'tinymce_4/settings/small.js',
#         ]


from django import forms
from django.db import models
from .widgets import TinyMCEFullWidget, TinyMCESmallWidget
# -*- coding: utf-8 -*-




class TinyMCEFormField(forms.CharField):

    '''Form field with support TinyMCE.'''

    widget = TinyMCEFullWidget

    def __init__(self, small_tiny=False, *args, **kwargs):
        if small_tiny:

# Path: tinymce_4/widgets.py
# class TinyMCEFullWidget(TinyMCEWidget):
#     '''
#     Textarea form widget with support TinyMCE.
#     See: http://www.tinymce.com/wiki.php/TinyMCE
#     This is widget for full config TinyMCE.
#     '''
# 
#     class Media:
#         js = [
#             'tinymce_4/settings/full/settings.js',
#             'tinymce_4/settings/full/custom_style_formats.js',
#             'tinymce_4/settings/full/external_plugins.js',
#             'tinymce_4/settings/full/image_class_list.js',
#             'tinymce_4/settings/full/menu.js',
#             'tinymce_4/settings/full/language_url.js',
#             'tinymce_4/settings/full/plugins.js',
#             'tinymce_4/settings/full/style_formats.js',
#             'tinymce_4/settings/full/table_class_list.js',
#             'tinymce_4/settings/full/templates.js',
#             'tinymce_4/settings/full.js',
#         ]
# 
# class TinyMCESmallWidget(TinyMCEWidget):
#     """
#     Textarea form widget with support TinyMCE.
#     See: http://www.tinymce.com/wiki.php/TinyMCE
#     This is widget for small config TinyMCE.
#     """
# 
#     class Media:
#         js = [
#             'tinymce_4/settings/small.js',
#         ]


# Path: tinymce_4/fields.py
from django import forms
from django.db import models
from .widgets import TinyMCEFullWidget, TinyMCESmallWidget

# -*- coding: utf-8 -*-




class TinyMCEFormField(forms.CharField):

    '''Form field with support TinyMCE.'''

    widget = TinyMCEFullWidget

    def __init__(self, small_tiny=False, *args, **kwargs):
        if small_tiny:

            self.widget = TinyMCESmallWidget