diff --git a/README.rst b/README.rst index 72f489a10..3d9fdebdb 100644 --- a/README.rst +++ b/README.rst @@ -57,7 +57,7 @@ One of the easiest contributions you can make is helping to translate this addon Documentation ============= -See ``REQUIREMENTS`` in the `setup.py `_ +See ``REQUIREMENTS`` in the `setup.py `_ file for additional dependencies listed in the The current integrated Version of CKEditor is: **4.17.2** @@ -88,6 +88,32 @@ Upgrading from ``cms.plugins.text`` Configuration ------------- +Inline editing feature +********************** + +Inline editing allows editors to directly click on a text plugin and change +the contents in django CMS' edit mode. The CKEditor appears directly around +the text field and can be used normally. Changes are saved as soon as the +text field leaves focus. + +Inline editing requires to encapsulate the HTML text in a ``
`` in +edit mode. This might cause some side effects with a site's CSS, e.g. direct +child rules. + +To activate inline editing add the following line in your project's +``settings.py``:: + + TEXT_INLINE_EDITING = True + +This will add a toggle button to the toolbar to allow to switch inline editing +on and off for the current session. + +When inline editing is active the editor will save the plugin's content each time it loses +focus. If only text has changed the user can immediately continue to edit. If +a text-enabled plugin was changed, added, or removed he page will refresh to +update the page tree and get the correctly rendered version of the changed +plugin. + Default content in Placeholder ****************************** @@ -97,7 +123,7 @@ If you use Django-CMS >= 3.0, you can use ``TextPlugin`` in "default_plugins" HTML content. If you want to add some "default children" to your automagically added plugin (i.e. a ``LinkPlugin``), you have to put children references in the body. References are ``"%(_tag_child_)s"`` with the -inserted order of chidren. For example:: +inserted order of children. For example:: CMS_PLACEHOLDER_CONF = { 'content': { @@ -212,7 +238,7 @@ configuration parameter in your settings:: #. Add `configuration='MYSETTING'` to the `HTMLField` usage(s) you want to customize; #. Define a setting parameter named as the string used in the `configuration` - argument of the `HTMLField` instance with the desidered configuration; + argument of the `HTMLField` instance with the desired configuration; Values not specified in your custom configuration will be taken from the global ``CKEDITOR_SETTINGS``. @@ -252,7 +278,7 @@ to note: .. _add styles and js configuration: https://github.com/divio/django-cms-demo/blob/7a104acaa749c52a8ed4870a74898e38daf20e46/src/settings.py#L318-L324 .. _stop CKEditor from removing empty spans: https://github.com/divio/django-cms-explorer/blob/908a88afa4e1d1176e267e77eb5c61e31ef0f9e5/static/js/addons/ckeditor.wysiwyg.js#L73 .. _allowedContent: http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules -.. _to contain: https://github.com/divio/djangocms-text-ckeditor/issues/405#issuecomment-276814197 +.. _to contain: https://github.com/django-cms/djangocms-text-ckeditor/issues/405#issuecomment-276814197 Drag & Drop Images @@ -262,7 +288,7 @@ In IE and Firefox based browsers it is possible to drag and drop a picture into This image is base64 encoded and lives in the 'src' attribute as a 'data' tag. We detect this images, encode them and convert them to picture plugins. -If you want to overwirite this behavior for your own picture plugin: +If you want to overwrite this behavior for your own picture plugin: There is a setting called:: diff --git a/djangocms_text_ckeditor/cms_plugins.py b/djangocms_text_ckeditor/cms_plugins.py index 6bb048996..efb07d34a 100644 --- a/djangocms_text_ckeditor/cms_plugins.py +++ b/djangocms_text_ckeditor/cms_plugins.py @@ -1,4 +1,5 @@ import json +import operator import re from distutils.version import LooseVersion @@ -14,6 +15,7 @@ from django.utils.decorators import method_decorator from django.utils.encoding import force_str from django.utils.translation import gettext +from django.utils.translation.trans_real import get_language from django.views.decorators.clickjacking import xframe_options_sameorigin from django.views.decorators.http import require_POST @@ -21,7 +23,7 @@ from cms.models import CMSPlugin from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool -from cms.utils.placeholder import get_toolbar_plugin_struct +from cms.utils.placeholder import get_placeholder_conf from cms.utils.urlutils import admin_reverse from . import settings @@ -34,7 +36,7 @@ from .widgets import TextEditorWidget -CMS_34 = LooseVersion(cms.__version__) >= LooseVersion('3.4') +CMS_34 = LooseVersion(cms.__version__) >= LooseVersion("3.4") def _user_can_change_placeholder(request, placeholder): @@ -48,7 +50,7 @@ def post_add_plugin(operation, **kwargs): from djangocms_history.helpers import get_bound_plugins, get_plugin_data from djangocms_history.models import dump_json - text_plugin = kwargs['plugin'] + text_plugin = kwargs["plugin"] new_plugin_ids = set(text_plugin._get_inline_plugin_ids()) if not new_plugin_ids: @@ -59,21 +61,21 @@ def post_add_plugin(operation, **kwargs): new_plugins = get_bound_plugins(new_plugins) # Extend the recorded added plugins to include the inline plugins (if any) - action = operation.actions.only('post_action_data').get(action=ADD_PLUGIN, order=1) + action = operation.actions.only("post_action_data").get(action=ADD_PLUGIN, order=1) post_data = json.loads(action.post_action_data) - post_data['plugins'].extend(get_plugin_data(plugin) for plugin in new_plugins) + post_data["plugins"].extend(get_plugin_data(plugin) for plugin in new_plugins) action.post_action_data = dump_json(post_data) - action.save(update_fields=['post_action_data']) + action.save(update_fields=["post_action_data"]) def pre_change_plugin(operation, **kwargs): from djangocms_history.actions import ADD_PLUGIN, DELETE_PLUGIN from djangocms_history.helpers import get_bound_plugins, get_plugin_data - old_text_plugin = kwargs['old_plugin'] + old_text_plugin = kwargs["old_plugin"] old_plugin_ids = set(old_text_plugin._get_inline_plugin_ids()) - new_text_plugin = kwargs['new_plugin'] + new_text_plugin = kwargs["new_plugin"] new_plugin_ids = set(new_text_plugin._get_inline_plugin_ids()) added_plugin_ids = new_plugin_ids.difference(old_plugin_ids) @@ -91,20 +93,16 @@ def pre_change_plugin(operation, **kwargs): # have already been set on the database when this pre operation # is executed. old_tree = ( - old_text_plugin - .cmsplugin_set - .filter(pk__in=old_plugin_ids) - .order_by('position') - .values_list('pk', flat=True) + old_text_plugin.cmsplugin_set.filter(pk__in=old_plugin_ids) + .order_by("position") + .values_list("pk", flat=True) ) old_tree = list(old_tree) new_tree = ( - new_text_plugin - .cmsplugin_set - .filter(pk__in=new_plugin_ids) - .order_by('position') - .values_list('pk', flat=True) + new_text_plugin.cmsplugin_set.filter(pk__in=new_plugin_ids) + .order_by("position") + .values_list("pk", flat=True) ) new_tree = list(new_tree) @@ -115,22 +113,25 @@ def pre_change_plugin(operation, **kwargs): order += 1 pre_action_data = { - 'order': old_tree, - 'parent_id': old_text_plugin.pk, + "order": old_tree, + "parent_id": old_text_plugin.pk, } - post_plugin_data = [get_plugin_data(plugin) for plugin in bound_plugins - if plugin.pk in added_plugin_ids] + post_plugin_data = [ + get_plugin_data(plugin) + for plugin in bound_plugins + if plugin.pk in added_plugin_ids + ] post_action_data = { - 'order': new_tree, - 'parent_id': old_text_plugin.pk, - 'plugins': post_plugin_data, + "order": new_tree, + "parent_id": old_text_plugin.pk, + "plugins": post_plugin_data, } operation.create_action( action=ADD_PLUGIN, language=old_text_plugin.language, - placeholder=kwargs['placeholder'], + placeholder=kwargs["placeholder"], pre_data=pre_action_data, post_data=post_action_data, order=order, @@ -138,25 +139,29 @@ def pre_change_plugin(operation, **kwargs): if deleted_plugin_ids: order += 1 - deleted_plugins = [plugin for plugin in bound_plugins if plugin.pk in deleted_plugin_ids] + deleted_plugins = [ + plugin for plugin in bound_plugins if plugin.pk in deleted_plugin_ids + ] pre_plugin_data = [get_plugin_data(plugin) for plugin in deleted_plugins] pre_action_data = { - 'order': old_tree, - 'parent_id': old_text_plugin.pk, - 'plugins': pre_plugin_data, + "order": old_tree, + "parent_id": old_text_plugin.pk, + "plugins": pre_plugin_data, } - post_plugin_data = [get_plugin_data(plugin, only_meta=True) for plugin in deleted_plugins] + post_plugin_data = [ + get_plugin_data(plugin, only_meta=True) for plugin in deleted_plugins + ] post_action_data = { - 'order': new_tree, - 'parent_id': old_text_plugin.pk, - 'plugins': post_plugin_data, + "order": new_tree, + "parent_id": old_text_plugin.pk, + "plugins": post_plugin_data, } operation.create_action( action=DELETE_PLUGIN, language=old_text_plugin.language, - placeholder=kwargs['placeholder'], + placeholder=kwargs["placeholder"], pre_data=pre_action_data, post_data=post_action_data, order=order, @@ -168,16 +173,18 @@ class TextPlugin(CMSPluginBase): name = settings.TEXT_PLUGIN_NAME module = settings.TEXT_PLUGIN_MODULE_NAME form = TextForm - render_template = 'cms/plugins/text.html' - change_form_template = 'cms/plugins/text_plugin_change_form.html' + render_template = "cms/plugins/text.html" + inline_editing_template = "cms/plugins/inline.html" + change_form_template = "cms/plugins/text_plugin_change_form.html" ckeditor_configuration = settings.TEXT_CKEDITOR_CONFIGURATION disable_child_plugins = True + fieldsets = ((None, {"fields": ("body",)}),) # These are executed by the djangocms-history app # We use them to inject inline plugin data operation_handler_callbacks = { - 'post_add_plugin': post_add_plugin, - 'pre_change_plugin': pre_change_plugin, + "post_add_plugin": post_add_plugin, + "pre_change_plugin": pre_change_plugin, } if CMS_34: @@ -196,17 +203,22 @@ def do_post_copy(cls, instance, source_map): def get_translation_export_content(field, plugin_data): def _render_plugin_with_content(obj, match): from djangocms_translations.utils import get_text_field_child_label + field = get_text_field_child_label(obj.plugin_type) - content = getattr(obj, field) if field else '' + content = getattr(obj, field) if field else "" return plugin_to_tag(obj, content) - content = _plugin_tags_to_html(plugin_data[field], output_func=_render_plugin_with_content) + content = _plugin_tags_to_html( + plugin_data[field], output_func=_render_plugin_with_content + ) subplugins_within_this_content = plugin_tags_to_id_list(content) return content, subplugins_within_this_content @staticmethod def set_translation_import_content(content, plugin): - data = [x.groups() for x in re.finditer(OBJ_ADMIN_WITH_CONTENT_RE_PATTERN, content)] + data = [ + x.groups() for x in re.finditer(OBJ_ADMIN_WITH_CONTENT_RE_PATTERN, content) + ] data = {int(pk): value for pk, value in data} return { @@ -219,23 +231,24 @@ def get_editor_widget(self, request, plugins, plugin): Returns the Django form Widget to be used for the text area """ - cancel_url_name = self.get_admin_url_name('delete_on_cancel') - cancel_url = reverse('admin:%s' % cancel_url_name) + cancel_url_name = self.get_admin_url_name("delete_on_cancel") + cancel_url = reverse("admin:%s" % cancel_url_name) - render_plugin_url_name = self.get_admin_url_name('render_plugin') - render_plugin_url = reverse('admin:%s' % render_plugin_url_name) + render_plugin_url_name = self.get_admin_url_name("render_plugin") + render_plugin_url = reverse("admin:%s" % render_plugin_url_name) action_token = self.get_action_token(request, plugin) # should we delete the text plugin when # the user cancels? delete_text_on_cancel = ( - 'delete-on-cancel' in request.GET and # noqa - not plugin.get_plugin_instance()[0] + "delete-on-cancel" in request.GET + and not plugin.get_plugin_instance()[0] # noqa ) widget = TextEditorWidget( - installed_plugins=plugins, pk=plugin.pk, + installed_plugins=plugins, + pk=plugin.pk, placeholder=plugin.placeholder, plugin_language=plugin.language, configuration=self.ckeditor_configuration, @@ -248,7 +261,9 @@ def get_editor_widget(self, request, plugins, plugin): return widget def _get_body_css_classes_from_parent_plugins( - self, plugin_instance: CMSPlugin, css_classes: str = '', + self, + plugin_instance: CMSPlugin, + css_classes: str = "", ) -> str: """ Recursion that collects CMSPluginBase.child_ckeditor_body_css_class attribute values, @@ -260,17 +275,22 @@ def _get_body_css_classes_from_parent_plugins( for plugin_name, plugin_class in plugin_pool.plugins.items(): is_current_parent_found = plugin_name == parent_current.plugin_type if is_current_parent_found: - body_css_class = '' - if getattr(plugin_class, 'child_ckeditor_body_css_class', False): + body_css_class = "" + if getattr(plugin_class, "child_ckeditor_body_css_class", False): body_css_class = plugin_class.child_ckeditor_body_css_class - if getattr(plugin_class, 'get_child_ckeditor_body_css_class', False): - body_css_class = plugin_class.get_child_ckeditor_body_css_class(parent_current) + if getattr( + plugin_class, "get_child_ckeditor_body_css_class", False + ): + body_css_class = plugin_class.get_child_ckeditor_body_css_class( + parent_current + ) if body_css_class and (body_css_class not in css_classes): - css_classes += ' ' + body_css_class + css_classes += " " + body_css_class css_classes_collected = self._get_body_css_classes_from_parent_plugins( - parent_current, css_classes, + parent_current, + css_classes, ) if css_classes_collected not in css_classes: css_classes += css_classes_collected @@ -290,7 +310,7 @@ def get_form_class(self, request, plugins, plugin): if instance: context = RequestContext(request) - context['request'] = request + context["request"] = request rendered_text = plugin_tags_to_admin_html( text=instance.body, context=context, @@ -303,26 +323,29 @@ class TextPluginForm(self.form): body = CharField(widget=widget, required=False) def __init__(self, *args, **kwargs): - initial = kwargs.pop('initial', {}) + initial = kwargs.pop("initial", {}) if rendered_text: - initial['body'] = rendered_text + initial["body"] = rendered_text super().__init__(*args, initial=initial, **kwargs) + return TextPluginForm @xframe_options_sameorigin - def add_view(self, request, form_url='', extra_context=None): - if 'plugin' in request.GET: + def add_view(self, request, form_url="", extra_context=None): + if "plugin" in request.GET: # CMS >= 3.4 compatibility - self.cms_plugin_instance = self._get_plugin_or_404(request.GET['plugin']) + self.cms_plugin_instance = self._get_plugin_or_404(request.GET["plugin"]) - if getattr(self, 'cms_plugin_instance', None): + if getattr(self, "cms_plugin_instance", None): # This can happen if the user did not properly cancel the plugin # and so a "ghost" plugin instance is left over. # The instance is a record that points to the Text plugin # but is not a real text plugin instance. return super().add_view( - request, form_url, extra_context, + request, + form_url, + extra_context, ) if not self.has_add_permission(request): @@ -331,7 +354,7 @@ def add_view(self, request, form_url='', extra_context=None): # This is NOT the normal workflow because we create a plugin # on GET request to the /add/ endpoint and so we bypass # django's add_view, thus bypassing permission check. - message = gettext('You do not have permission to add a plugin.') + message = gettext("You do not have permission to add a plugin.") return HttpResponseForbidden(force_str(message)) try: @@ -341,16 +364,16 @@ def add_view(self, request, form_url='', extra_context=None): # CMS >= 3.4 compatibility _data = self._cms_initial_attributes data = { - 'plugin_language': _data['language'], - 'placeholder_id': _data['placeholder'], - 'parent': _data['parent'], - 'position': _data['position'], - 'plugin_type': _data['plugin_type'], - 'plugin_parent': _data['parent'], + "plugin_language": _data["language"], + "placeholder_id": _data["placeholder"], + "parent": _data["parent"], + "position": _data["position"], + "plugin_type": _data["plugin_type"], + "plugin_parent": _data["parent"], } except PermissionDenied: - message = gettext('You do not have permission to add a plugin.') + message = gettext("You do not have permission to add a plugin.") return HttpResponseForbidden(force_str(message)) except ValidationError as error: return HttpResponseBadRequest(error.message) @@ -359,20 +382,20 @@ def add_view(self, request, form_url='', extra_context=None): # because we need this record in order to allow the user to add # child plugins to the text (image, link, etc..) plugin = CMSPlugin.objects.create( - language=data['plugin_language'], - plugin_type=data['plugin_type'], - position=data['position'], - placeholder=data['placeholder_id'], - parent=data.get('plugin_parent'), + language=data["plugin_language"], + plugin_type=data["plugin_type"], + position=data["position"], + placeholder=data["placeholder_id"], + parent=data.get("plugin_parent"), ) query = request.GET.copy() - query['plugin'] = str(plugin.pk) + query["plugin"] = str(plugin.pk) - success_url = admin_reverse('cms_page_add_plugin') + success_url = admin_reverse("cms_page_add_plugin") # Because we've created the cmsplugin record # we need to delete the plugin when a user cancels. - success_url += '?delete-on-cancel&' + query.urlencode() + success_url += "?delete-on-cancel&" + query.urlencode() return HttpResponseRedirect(success_url) def get_plugin_urls(self): @@ -381,14 +404,14 @@ def pattern(regex, func): return re_path(regex, func, name=name) url_patterns = [ - pattern(r'^render-plugin/$', self.render_plugin), - pattern(r'^delete-on-cancel/$', self.delete_on_cancel), + pattern(r"^render-plugin/$", self.render_plugin), + pattern(r"^delete-on-cancel/$", self.delete_on_cancel), ] return url_patterns def get_admin_url_name(self, name): plugin_type = self.__class__.__name__.lower() - url_name = f'{self.model._meta.app_label}_{plugin_type}_{name}' + url_name = f"{self.model._meta.app_label}_{plugin_type}_{name}" return url_name def _get_text_plugin_from_request(self, request, data): @@ -403,7 +426,7 @@ def _get_text_plugin_from_request(self, request, data): if text_plugin_id: return self._get_plugin_or_404(text_plugin_id) - message = gettext('Unable to process your request. Invalid token.') + message = gettext("Unable to process your request. Invalid token.") raise ValidationError(message=force_str(message)) @random_comment_exempt @@ -417,15 +440,17 @@ def render_plugin(self, request): form = RenderPluginForm(request.GET, text_plugin=text_plugin) if not form.is_valid(): - message = gettext('Unable to process your request.') + message = gettext("Unable to process your request.") return HttpResponseBadRequest(message) plugin_class = text_plugin.get_plugin_class_instance() # The following is needed for permission checking plugin_class.opts = plugin_class.model._meta - if not (plugin_class.has_change_permission(request, obj=text_plugin) and # noqa - _user_can_change_placeholder(request, text_plugin.placeholder)): + if not ( + plugin_class.has_change_permission(request, obj=text_plugin) + and _user_can_change_placeholder(request, text_plugin.placeholder) # noqa + ): raise PermissionDenied return HttpResponse(form.render_plugin(request)) @@ -449,7 +474,7 @@ def delete_on_cancel(self, request): form = DeleteOnCancelForm(request.POST, text_plugin=text_plugin) if not form.is_valid(): - message = gettext('Unable to process your request.') + message = gettext("Unable to process your request.") return HttpResponseBadRequest(message) plugin_class = text_plugin.get_plugin_class_instance() @@ -459,8 +484,10 @@ def delete_on_cancel(self, request): # Check for add permissions because this view is meant # only for plugins created through the ckeditor # and the ckeditor plugin itself. - if not (plugin_class.has_add_permission(request) and # noqa - _user_can_change_placeholder(request, text_plugin.placeholder)): + if not ( + plugin_class.has_add_permission(request) + and _user_can_change_placeholder(request, text_plugin.placeholder) # noqa + ): raise PermissionDenied # Token is validated after checking permissions # to avoid non-auth users from triggering validation mechanism. @@ -478,40 +505,87 @@ def get_child_plugin_candidates(cls, slot, page): ) return text_enabled_plugins - def get_form(self, request, obj=None, **kwargs): - plugin = getattr(self, 'cms_plugin_instance', None) or obj + def get_plugins(self, obj=None): + plugin = getattr(self, "cms_plugin_instance", None) or obj get_plugin = plugin_pool.get_plugin child_plugin_types = self.get_child_classes( slot=plugin.placeholder.slot, page=self.page, ) child_plugins = (get_plugin(name) for name in child_plugin_types) - plugins = get_toolbar_plugin_struct( - child_plugins, - plugin.placeholder.slot, - self.page, - ) + template = getattr(self.page, "template", None) + + modules = get_placeholder_conf("plugin_modules", plugin.placeholder.slot, template, default={}) + names = get_placeholder_conf("plugin_labels", plugin.placeholder.slot, template, default={}) + main_list = [] + + # plugin.value points to the class name of the plugin + # It's added on registration. TIL. + for plugin in child_plugins: + main_list.append({'value': plugin.value, + 'name': names.get(plugin.value, plugin.name), + 'icon': getattr(plugin, "text_icon", None), + 'module': modules.get(plugin.value, plugin.module)}) + return sorted(main_list, key=operator.itemgetter("module")) + + def get_form(self, request, obj=None, **kwargs): + plugin = getattr(self, "cms_plugin_instance", None) or obj + plugins = self.get_plugins(obj) form = self.get_form_class( request=request, plugins=plugins, plugin=plugin, ) - kwargs['form'] = form # override standard form + kwargs["form"] = form # override standard form return super().get_form(request, obj, **kwargs) + def get_render_template(self, context, instance, placeholder): + if hasattr(context["request"], "toolbar") and context["request"].toolbar.edit_mode_active: + return self.inline_editing_template + else: + return self.render_template + + def inline_editing_active(self, request): + return ( + settings.TEXT_INLINE_EDITING + and hasattr(request, "toolbar") + and request.toolbar.edit_mode_active + and request.session.get("inline_editing", True) + ) + def render(self, context, instance, placeholder): - context.update({ - 'body': plugin_tags_to_user_html( - instance.body, - context, - ), - 'placeholder': placeholder, - 'object': instance, - }) + if self.inline_editing_active(context["request"]): + ckeditor_settings = self.get_editor_widget( + context["request"], self.get_plugins(instance), instance + ).get_ckeditor_settings(get_language().split("-")[0]) + + context.update( + { + "body": plugin_tags_to_admin_html( + instance.body, + context, + ), + "placeholder": placeholder, + "object": instance, + "ckeditor_settings": ckeditor_settings, + "ckeditor_settings_id": "ck-cfg-" + str(instance.pk), + } + ) + else: + context.update( + { + "body": plugin_tags_to_user_html( + instance.body, + context, + ), + "placeholder": placeholder, + "object": instance, + } + ) return context def save_model(self, request, obj, form, change): - if getattr(self, 'cms_plugin_instance', None): + if getattr(self, "cms_plugin_instance", None): # Because the plugin was created by manually # creating the CMSPlugin record, it's important # to assign all the values from the CMSPlugin record @@ -540,11 +614,8 @@ def get_action_token(self, request, obj): def _get_plugin_or_404(self, pk): plugin_type = self.__class__.__name__ - plugins = ( - CMSPlugin - .objects - .select_related('placeholder', 'parent') - .filter(plugin_type=plugin_type) + plugins = CMSPlugin.objects.select_related("placeholder", "parent").filter( + plugin_type=plugin_type ) field = self.model._meta.pk @@ -552,7 +623,7 @@ def _get_plugin_or_404(self, pk): try: object_id = field.to_python(unquote(pk)) except (ValidationError, ValueError): - raise Http404('Invalid plugin id') + raise Http404("Invalid plugin id") return get_object_or_404(plugins, pk=object_id) diff --git a/djangocms_text_ckeditor/cms_toolbars.py b/djangocms_text_ckeditor/cms_toolbars.py new file mode 100644 index 000000000..4a4a6f163 --- /dev/null +++ b/djangocms_text_ckeditor/cms_toolbars.py @@ -0,0 +1,75 @@ +from urllib.parse import urlparse, urlunparse + +from django import forms +from django.http import QueryDict +from django.utils.functional import cached_property +from django.utils.safestring import mark_safe +from django.utils.translation import gettext_lazy as _ + +from cms.cms_toolbars import CMSToolbar +from cms.toolbar.items import BaseItem, Button, ButtonList +from cms.toolbar_pool import toolbar_pool + +from . import settings +from .widgets import PATH_TO_JS + + +class IconButton(Button): + template = "cms/toolbar/icon-button.html" + + +class InlineEditingItem(BaseItem): + """Make ckeditor base path available for inline editing""" + def render(self): + return mark_safe( + f'') + + +class InlineEditingToolbar(CMSToolbar): + @property + def media(self): + if self.toolbar.edit_mode_active and self.inline_editing: + return forms.Media( + css={'screen': ('djangocms_text_ckeditor/css/cms.inline-ckeditor.css',)}, + js=(PATH_TO_JS,), + ) + return forms.Media() + + @cached_property + def inline_editing(self): + inline_editing = self.request.session.get("inline_editing", True) # Activated by default + change = self.request.GET.get("inline_editing", None) # can be changed by query param + if change is not None: + inline_editing = change == "1" + self.request.session["inline_editing"] = inline_editing # store in session + return inline_editing + + def populate(self): + if self.toolbar.edit_mode_active: + item = ButtonList(side = self.toolbar.RIGHT) + item.add_item( + IconButton( + name=_("Toggle inline editing mode for text plugins"), + url=self.get_full_path_with_param("inline_editing", int(not self.inline_editing)), + active=self.inline_editing, + extra_classes=["cms-icon cms-icon-pencil"], + ), + ) + self.toolbar.add_item(item) + if self.inline_editing: + self.toolbar.add_item(InlineEditingItem(), position=None) # Loads js and css for inline editing + + def get_full_path_with_param(self, key, value): + """ + Adds key=value to the query parameters, replacing an existing key if necessary + """ + url = urlparse(self.toolbar.request_path) + query_dict = QueryDict(url.query).copy() + query_dict[key] = value + url = url._replace(query=query_dict.urlencode()) + return urlunparse(url) + + +if settings.TEXT_INLINE_EDITING: # Only register if explicitly required from settings + toolbar_pool.register(InlineEditingToolbar) diff --git a/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.mo index 9b6d929f5..6edb74eb2 100644 Binary files a/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.po index 5a25b08c8..5268b0da4 100644 --- a/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/ar/LC_MESSAGES/django.po @@ -2,66 +2,66 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Arabic (https://www.transifex.com/divio/teams/58664/ar/)\n" +"Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ar\n" -"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "المحتوى" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "النص" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.mo index 336f794cb..eddfc6b8e 100644 Binary files a/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.po index d61b817c7..4d8840178 100644 --- a/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/bn/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Bengali (https://www.transifex.com/divio/teams/58664/bn/)\n" +"Language: bn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: bn\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "বিষয়বস্তু" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "টেক্সট" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.mo index dfd9feae3..ca0001e24 100644 Binary files a/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.po index 18cd56eb7..a8c351852 100644 --- a/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/ca/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Catalan (https://www.transifex.com/divio/teams/58664/ca/)\n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "cos" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Text" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.mo index 6adc5eab3..a86d3555c 100644 Binary files a/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.po index f218ac72b..d07eba13a 100644 --- a/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/cs/LC_MESSAGES/django.po @@ -2,66 +2,66 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Czech (https://www.transifex.com/divio/teams/58664/cs/)\n" +"Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: cs\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n " +"<= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "tělo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Text" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.mo index cf4dc024e..cc248e029 100644 Binary files a/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.po index 2dfd1e6b1..01f6127b6 100644 --- a/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/da/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Danish (https://www.transifex.com/divio/teams/58664/da/)\n" +"Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "body" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekst" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.mo index 9aaebb47c..90637cd19 100644 Binary files a/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.po index 806fe228b..5593d1aa0 100644 --- a/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/de/LC_MESSAGES/django.po @@ -2,66 +2,68 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: German (https://www.transifex.com/divio/teams/58664/de/)\n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "Sie haben keine Rechte um ein Plugin hinzuzufügen." -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "Die Anfrage kann nicht bearbeitet werden. Inkorrektes Token." -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "Die Anfrage kann nicht bearbeitet werden." -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "Inline-Editing-Modus für Text-Plugins umschalten" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "Gespeichertes Plugin kann nicht gelöscht werden." -#: models.py:43 +#: models.py:37 msgid "body" msgstr "Body" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Text" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "Generisch" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "CMS Plugins" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "CMS Plugin hinzufügen" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "CMS Plugin editieren" -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "Standart Plugins" +#~ msgid "Standard Plugins" +#~ msgstr "Standart Plugins" diff --git a/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.mo index 436032b22..57ac66528 100644 Binary files a/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.po index 658b64567..037572e79 100644 --- a/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/el/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Greek (https://www.transifex.com/divio/teams/58664/el/)\n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: el\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "σώμα" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Κείμενο" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.mo index 6da141dbd..04660c935 100644 Binary files a/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.po index 8a572173e..34581c50a 100644 --- a/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/en/LC_MESSAGES/django.po @@ -2,62 +2,64 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: \n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "You do not have permission to add a plugin." -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "Unable to process your request. Invalid token." -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "Unable to process your request." -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "Toggle inline editing mode for text plugins" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "Can't delete a saved plugin." -#: models.py:43 +#: models.py:37 msgid "body" msgstr "body" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Text" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "Generic" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "CMS Plugins" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "Add CMS Plugin" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "Edit CMS Plugin" -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "Standard Plugins" +#~ msgid "Standard Plugins" +#~ msgstr "Standard Plugins" diff --git a/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.mo index 13edde133..6838a20a1 100644 Binary files a/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.po index 70bbd2c71..a02ef80a1 100644 --- a/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/es/LC_MESSAGES/django.po @@ -2,67 +2,69 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 # Luis Zárate , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Luis Zárate , 2019\n" "Language-Team: Spanish (https://www.transifex.com/divio/teams/58664/es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "No se puede procesar esta petición. Token inválido" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "No se puede procesar esta petición" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "No se puede eliminar un complemento salvado" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "cuerpo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Texto" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "Genérico" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "CMS Plugins" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "Agregar CMS Plugin" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "Editar CMS Plugin" -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "Complementos estándares" +#~ msgid "Standard Plugins" +#~ msgstr "Complementos estándares" diff --git a/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.mo index 4de1dc9fe..be52b90c6 100644 Binary files a/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.po index 07ee25a5b..6da856737 100644 --- a/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/et/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Estonian (https://www.transifex.com/divio/teams/58664/et/)\n" +"Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: et\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekst" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.mo index af4fa44b6..f0595837c 100644 Binary files a/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.po index c7e756bf6..cc0213deb 100644 --- a/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/eu/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Basque (https://www.transifex.com/divio/teams/58664/eu/)\n" +"Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: eu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "gorputza" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Testua" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.mo index 985b9f577..e21f7133b 100644 Binary files a/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.po index 1e5714c69..87ae77721 100644 --- a/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/fa/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Persian (https://www.transifex.com/divio/teams/58664/fa/)\n" +"Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: fa\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "بدنه" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "متن" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.mo index 107d35735..15470075f 100644 Binary files a/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.po index b079b7250..83e7cc6be 100644 --- a/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/fi/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Finnish (https://www.transifex.com/divio/teams/58664/fi/)\n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "vartalo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Teksti" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.mo index f1a9225fc..12dff8334 100644 Binary files a/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.po index ee5f86d9a..3dc0558f9 100644 --- a/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/fr/LC_MESSAGES/django.po @@ -2,67 +2,69 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 # Nicolas PASCAL , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Nicolas PASCAL , 2019\n" "Language-Team: French (https://www.transifex.com/divio/teams/58664/fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "Impossible de traiter votre demande. Jeton invalide." -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "Impossible de traiter votre demande." -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "Impossible de supprimer le plugin enregistré." -#: models.py:43 +#: models.py:37 msgid "body" msgstr "corps" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Texte" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "Générique" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "CMS Plugins" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "Ajouter un plugin CMS" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "Modifier le plugin CMS" -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "Plugins Standard" +#~ msgid "Standard Plugins" +#~ msgstr "Plugins Standard" diff --git a/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.mo index 66d362f50..4aeaa6b4a 100644 Binary files a/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.po index a2c9e87e4..12a43c6dd 100644 --- a/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/gl/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Galician (https://www.transifex.com/divio/teams/58664/gl/)\n" +"Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "corpo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Texto" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.mo index c623e5694..d9edd2ccf 100644 Binary files a/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.po index 8cdf618c8..bad6f577d 100644 --- a/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/he/LC_MESSAGES/django.po @@ -2,66 +2,66 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Hebrew (https://www.transifex.com/divio/teams/58664/he/)\n" +"Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: he\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % " +"1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "תוכן" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "טקסט" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.mo index cd3935a7e..ec513707a 100644 Binary files a/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.po index 102bcd769..d7c4e99cd 100644 --- a/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/hi/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Hindi (https://www.transifex.com/divio/teams/58664/hi/)\n" +"Language: hi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: hi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "शरीर" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "पाठ" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.mo index 1c1e8c048..74003be34 100644 Binary files a/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.po index c902ae54b..d2daa7c48 100644 --- a/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/hr/LC_MESSAGES/django.po @@ -2,66 +2,66 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Croatian (https://www.transifex.com/divio/teams/58664/hr/)\n" +"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: hr\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "tijelo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekst" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.mo index 7ce387489..3e35ac164 100644 Binary files a/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.po index 3fa664de4..1299daeb9 100644 --- a/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/hu/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Hungarian (https://www.transifex.com/divio/teams/58664/hu/)\n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: hu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "törzs" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Szöveg" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.mo index 1ff619dd3..e3b73856d 100644 Binary files a/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.po index 712cff08c..df160d39b 100644 --- a/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/is/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Icelandic (https://www.transifex.com/divio/teams/58664/is/)\n" +"Language: is\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: is\n" "Plural-Forms: nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "meginmál" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Texti" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.mo index d164d0b5d..603caf185 100644 Binary files a/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.po index d61bf7d49..94196743a 100644 --- a/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/it/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Italian (https://www.transifex.com/divio/teams/58664/it/)\n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "corpo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Testo" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.mo index 07ca424f9..22a3bf03e 100644 Binary files a/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.po index 59fb4cded..2c5b10dbe 100644 --- a/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/ja/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Japanese (https://www.transifex.com/divio/teams/58664/ja/)\n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "本文" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "テキスト" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.mo index c44a5f788..de76cd16c 100644 Binary files a/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.po index 8ff35e645..18419ef03 100644 --- a/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/lt/LC_MESSAGES/django.po @@ -2,67 +2,71 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 # Matas Dailyda , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Matas Dailyda , 2019\n" "Language-Team: Lithuanian (https://www.transifex.com/divio/teams/58664/lt/)\n" +"Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: lt\n" -"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < " +"11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? " +"1 : n % 1 != 0 ? 2: 3);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "Negalima apdoroti jūsų užklausos. Netinkama žymė." -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "Negalima apdoroti jūsų užklausos. " -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "Negalima pašalinti išsaugoto įskiepio." -#: models.py:43 +#: models.py:37 msgid "body" msgstr "turinys" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekstas" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "Bendras" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "TVS įskiepiai" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "Pridėti TVS įskiepį" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "Redaguotis TVS įskiepį" -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "Standartiniai įskiepiai" +#~ msgid "Standard Plugins" +#~ msgstr "Standartiniai įskiepiai" diff --git a/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.mo index 1399df8cc..6fd26d781 100644 Binary files a/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.po index 1079baf9a..02ad54fc0 100644 --- a/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/nl/LC_MESSAGES/django.po @@ -2,67 +2,69 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 # Heimen Stoffels , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Heimen Stoffels , 2019\n" "Language-Team: Dutch (https://www.transifex.com/divio/teams/58664/nl/)\n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "Kan verzoek niet verwerken; ongeldige toegangssleutel." -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "Kan verzoek niet verwerken." -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "Kan geen opgeslagen plug-ins verwijderen." -#: models.py:43 +#: models.py:37 msgid "body" msgstr "inhoud" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekst" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "Algemeen" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "CMS-plug-ins" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "CMS-plug-in toevoegen" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "CMS-plug-in bewerken" -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "Standaardplug-ins" +#~ msgid "Standard Plugins" +#~ msgstr "Standaardplug-ins" diff --git a/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.mo index ac8a1e443..263ef9833 100644 Binary files a/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.po index 15ff6da05..6b83bc2cd 100644 --- a/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/no/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Norwegian (https://www.transifex.com/divio/teams/58664/no/)\n" +"Language: no\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: no\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "innhold" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekst" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.mo index 562054b2b..20ce990f1 100644 Binary files a/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.po index 4a5369942..bcb08541a 100644 --- a/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/pl/LC_MESSAGES/django.po @@ -2,66 +2,67 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Polish (https://www.transifex.com/divio/teams/58664/pl/)\n" +"Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" +"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" +"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "treść" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Tekst" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.mo index b5405ce1b..4a8090424 100644 Binary files a/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.po index 0f645a251..98bd1e31f 100644 --- a/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/pt/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Portuguese (https://www.transifex.com/divio/teams/58664/pt/)\n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "corpo" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Texto" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.mo index be5897407..0af1cdae1 100644 Binary files a/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.po index 0bbe3590a..0e8f25a57 100644 --- a/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/ro/LC_MESSAGES/django.po @@ -2,66 +2,66 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Romanian (https://www.transifex.com/divio/teams/58664/ro/)\n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "corp" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Text" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.mo index a491b37f7..c17f83d1b 100644 Binary files a/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.po index 7937e57c5..474baeb79 100644 --- a/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/ru/LC_MESSAGES/django.po @@ -2,66 +2,67 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Russian (https://www.transifex.com/divio/teams/58664/ru/)\n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ru\n" -"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "тело" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Текст" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.mo index 3e0b0373d..289bf8828 100644 Binary files a/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.po index 1d224fc58..88fedc2c0 100644 --- a/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/sv/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Swedish (https://www.transifex.com/divio/teams/58664/sv/)\n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: sv\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "innehåll" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Text" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.mo index 2d1dcbdcd..226221c12 100644 Binary files a/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.po index 260a36c3a..2be10410d 100644 --- a/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/tr/LC_MESSAGES/django.po @@ -2,66 +2,65 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Turkish (https://www.transifex.com/divio/teams/58664/tr/)\n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "gövde" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Metin" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.mo b/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.mo index 4f53cbb11..0d227b985 100644 Binary files a/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.mo and b/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.mo differ diff --git a/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.po b/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.po index 316a56a8d..58b8ecd89 100644 --- a/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.po +++ b/djangocms_text_ckeditor/locale/uk/LC_MESSAGES/django.po @@ -2,66 +2,68 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Angelo Dini , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:13+0100\n" +"POT-Creation-Date: 2022-05-14 17:00+0200\n" "PO-Revision-Date: 2019-01-23 16:28+0000\n" "Last-Translator: Angelo Dini , 2019\n" "Language-Team: Ukrainian (https://www.transifex.com/divio/teams/58664/uk/)\n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: uk\n" -"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != " +"11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % " +"100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || " +"(n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" -#: cms_plugins.py:314 cms_plugins.py:333 +#: cms_plugins.py:356 cms_plugins.py:375 msgid "You do not have permission to add a plugin." msgstr "" -#: cms_plugins.py:386 +#: cms_plugins.py:428 msgid "Unable to process your request. Invalid token." msgstr "" -#: cms_plugins.py:400 cms_plugins.py:432 +#: cms_plugins.py:442 cms_plugins.py:476 msgid "Unable to process your request." msgstr "" -#: forms.py:70 +#: cms_toolbars.py:53 +msgid "Toggle inline editing mode for text plugins" +msgstr "" + +#: forms.py:69 msgid "Can't delete a saved plugin." msgstr "" -#: models.py:43 +#: models.py:37 msgid "body" msgstr "тіло" -#: settings.py:38 +#: settings.py:36 msgid "Text" msgstr "Текст" -#: settings.py:39 +#: settings.py:37 msgid "Generic" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:25 -#: templates/cms/plugins/widgets/ckeditor.html:28 +#: widgets.py:114 widgets.py:117 msgid "CMS Plugins" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:26 +#: widgets.py:115 msgid "Add CMS Plugin" msgstr "" -#: templates/cms/plugins/widgets/ckeditor.html:27 +#: widgets.py:116 msgid "Edit CMS Plugin" msgstr "" - -#: templates/cms/plugins/widgets/ckeditor.html:33 -msgid "Standard Plugins" -msgstr "" diff --git a/djangocms_text_ckeditor/settings.py b/djangocms_text_ckeditor/settings.py index 627bf8e62..781e96a8c 100644 --- a/djangocms_text_ckeditor/settings.py +++ b/djangocms_text_ckeditor/settings.py @@ -6,12 +6,14 @@ # See http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html # for all settings -CKEDITOR_SETTINGS = getattr(settings, 'CKEDITOR_SETTINGS', { +CKEDITOR_SETTINGS = { 'language': '{{ language }}', 'toolbar': 'CMS', 'skin': 'moono-lisa', + 'baseFloatZIndex': 10000000, 'toolbarCanCollapse': False, -}) + **getattr(settings, 'CKEDITOR_SETTINGS', {}), +} INSTALLED_APPS = getattr(settings, 'INSTALLED_APPS', []) if 'cms.plugins.picture' in INSTALLED_APPS or 'djangocms_picture' in INSTALLED_APPS: @@ -37,3 +39,4 @@ ALLOW_TOKEN_PARSERS = ( 'djangocms_text_ckeditor.attribute_parsers.DataAttributeParser', ) +TEXT_INLINE_EDITING = getattr(settings, 'TEXT_INLINE_EDITING', False) diff --git a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/build-config.js b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/build-config.js index 6d562ff93..07e1d96ff 100644 --- a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/build-config.js +++ b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/build-config.js @@ -71,7 +71,7 @@ var CKBUILDER_CONFIG = { 'entities' : 1, 'filebrowser' : 1, 'find' : 1, - 'flash' : 1, +// 'flash' : 1, 'floatingspace' : 1, 'font' : 1, 'format' : 1, @@ -187,4 +187,4 @@ var CKBUILDER_CONFIG = { 'zh' : 1, 'zh-cn' : 1 } -}; \ No newline at end of file +}; diff --git a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/ckeditor.js b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/ckeditor.js index cf1ba9334..b3ec627e6 100644 --- a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/ckeditor.js +++ b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/ckeditor.js @@ -1379,4 +1379,4 @@ this.editor.widgets.destroyAll(!1,this);this._.initialSetData=!1;a=this.editor.d Q={37:1,38:1,39:1,40:1,8:1,46:1};Q[CKEDITOR.SHIFT+121]=1;var u=CKEDITOR.tools.createClass({$:function(a,b){this._.createCopyBin(a,b);this._.createListeners(b)},_:{createCopyBin:function(a){var b=a.document,c=CKEDITOR.env.edge&&16<=CKEDITOR.env.version,d=!a.blockless&&!CKEDITOR.env.ie||c?"div":"span",c=b.createElement(d),b=b.createElement(d);b.setAttributes({id:"cke_copybin","data-cke-temp":"1"});c.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});c.setStyle("ltr"==a.config.contentsLangDirection? "left":"right","-5000px");this.editor=a;this.copyBin=c;this.container=b},createListeners:function(a){a&&(a.beforeDestroy&&(this.beforeDestroy=a.beforeDestroy),a.afterDestroy&&(this.afterDestroy=a.afterDestroy))}},proto:{handle:function(a){var b=this.copyBin,c=this.editor,d=this.container,e=CKEDITOR.env.ie&&9>CKEDITOR.env.version,f=c.document.getDocumentElement().$,g=c.createRange(),h=this,k=CKEDITOR.env.mac&&CKEDITOR.env.webkit,n=k?100:0,m=window.requestAnimationFrame&&!k?requestAnimationFrame:setTimeout, p,r,q;b.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e'+a+'\x3cspan data-cke-copybin-end\x3d"1"\x3e​\x3c/span\x3e');c.fire("lockSnapshot");d.append(b);c.editable().append(d);p=c.on("selectionChange",K,null,null,0);r=c.widgets.on("checkSelection",K,null,null,0);e&&(q=f.scrollTop);g.selectNodeContents(b);g.select();e&&(f.scrollTop=q);return new CKEDITOR.tools.promise(function(a){m(function(){h.beforeDestroy&&h.beforeDestroy();d.remove();p.removeListener();r.removeListener();c.fire("unlockSnapshot"); -h.afterDestroy&&h.afterDestroy();a()},n)})}},statics:{hasCopyBin:function(a){return!!u.getCopyBin(a)},getCopyBin:function(a){return a.document.getById("cke_copybin")}}});CKEDITOR.plugins.widget=h;h.repository=q;h.nestedEditable=t})();CKEDITOR.config.widget_keystrokeInsertLineBefore=CKEDITOR.SHIFT+CKEDITOR.ALT+13;CKEDITOR.config.widget_keystrokeInsertLineAfter=CKEDITOR.SHIFT+13;CKEDITOR.config.plugins='dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,xml,ajax,templates,menu,contextmenu,copyformatting,div,resize,elementspath,enterkey,entities,popup,filetools,filebrowser,find,flash,floatingspace,listblock,richcombo,font,fakeobjects,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastetools,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc,lineutils,widgetselection,widget';CKEDITOR.config.skin='moono-lisa';(function() {var setIcons = function(icons, strip) {var path = CKEDITOR.getUrl( 'plugins/' + strip );icons = icons.split( ',' );for ( var i = 0; i < icons.length; i++ )CKEDITOR.skin.icons[ icons[ i ] ] = { path: path, offset: -icons[ ++i ], bgsize : icons[ ++i ] };};if (CKEDITOR.env.hidpi) setIcons('about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,bgcolor,384,,textcolor,408,,templates-rtl,432,,templates,456,,copyformatting,480,,creatediv,504,,find-rtl,528,,find,552,,replace,576,,button,600,,checkbox,624,,form,648,,hiddenfield,672,,imagebutton,696,,radio,720,,select-rtl,744,,select,768,,textarea-rtl,792,,textarea,816,,textfield-rtl,840,,textfield,864,,horizontalrule,888,,iframe,912,,image,936,,indent-rtl,960,,indent,984,,outdent-rtl,1008,,outdent,1032,,smiley,1056,,justifyblock,1080,,justifycenter,1104,,justifyleft,1128,,justifyright,1152,,language,1176,,anchor-rtl,1200,,anchor,1224,,link,1248,,unlink,1272,,bulletedlist-rtl,1296,,bulletedlist,1320,,numberedlist-rtl,1344,,numberedlist,1368,,maximize,1392,,newpage-rtl,1416,,newpage,1440,,pagebreak-rtl,1464,,pagebreak,1488,,pastetext-rtl,1512,,pastetext,1536,,pastefromword-rtl,1560,,pastefromword,1584,,preview-rtl,1608,,preview,1632,,print,1656,,removeformat,1680,,save,1704,,selectall,1728,,showblocks-rtl,1752,,showblocks,1776,,source-rtl,1800,,source,1824,,specialchar,1848,,scayt,1872,,table,1896,,redo-rtl,1920,,redo,1944,,undo-rtl,1968,,undo,1992,,spellchecker,2016,','icons_hidpi.png');else setIcons('about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,bgcolor,384,auto,textcolor,408,auto,templates-rtl,432,auto,templates,456,auto,copyformatting,480,auto,creatediv,504,auto,find-rtl,528,auto,find,552,auto,replace,576,auto,button,600,auto,checkbox,624,auto,form,648,auto,hiddenfield,672,auto,imagebutton,696,auto,radio,720,auto,select-rtl,744,auto,select,768,auto,textarea-rtl,792,auto,textarea,816,auto,textfield-rtl,840,auto,textfield,864,auto,horizontalrule,888,auto,iframe,912,auto,image,936,auto,indent-rtl,960,auto,indent,984,auto,outdent-rtl,1008,auto,outdent,1032,auto,smiley,1056,auto,justifyblock,1080,auto,justifycenter,1104,auto,justifyleft,1128,auto,justifyright,1152,auto,language,1176,auto,anchor-rtl,1200,auto,anchor,1224,auto,link,1248,auto,unlink,1272,auto,bulletedlist-rtl,1296,auto,bulletedlist,1320,auto,numberedlist-rtl,1344,auto,numberedlist,1368,auto,maximize,1392,auto,newpage-rtl,1416,auto,newpage,1440,auto,pagebreak-rtl,1464,auto,pagebreak,1488,auto,pastetext-rtl,1512,auto,pastetext,1536,auto,pastefromword-rtl,1560,auto,pastefromword,1584,auto,preview-rtl,1608,auto,preview,1632,auto,print,1656,auto,removeformat,1680,auto,save,1704,auto,selectall,1728,auto,showblocks-rtl,1752,auto,showblocks,1776,auto,source-rtl,1800,auto,source,1824,auto,specialchar,1848,auto,scayt,1872,auto,table,1896,auto,redo-rtl,1920,auto,redo,1944,auto,undo-rtl,1968,auto,undo,1992,auto,spellchecker,2016,auto','icons.png');})();CKEDITOR.lang.languages={"af":1,"sq":1,"ar":1,"az":1,"eu":1,"bn":1,"bs":1,"bg":1,"ca":1,"zh-cn":1,"zh":1,"hr":1,"cs":1,"da":1,"nl":1,"en":1,"en-au":1,"en-ca":1,"en-gb":1,"eo":1,"et":1,"fo":1,"fi":1,"fr":1,"fr-ca":1,"gl":1,"ka":1,"de":1,"de-ch":1,"el":1,"gu":1,"he":1,"hi":1,"hu":1,"is":1,"id":1,"it":1,"ja":1,"km":1,"ko":1,"ku":1,"lv":1,"lt":1,"mk":1,"ms":1,"mn":1,"no":1,"nb":1,"oc":1,"fa":1,"pl":1,"pt-br":1,"pt":1,"ro":1,"ru":1,"sr":1,"sr-latn":1,"si":1,"sk":1,"sl":1,"es":1,"sv":1,"tt":1,"th":1,"tr":1,"ug":1,"uk":1,"vi":1,"cy":1};}()); \ No newline at end of file +h.afterDestroy&&h.afterDestroy();a()},n)})}},statics:{hasCopyBin:function(a){return!!u.getCopyBin(a)},getCopyBin:function(a){return a.document.getById("cke_copybin")}}});CKEDITOR.plugins.widget=h;h.repository=q;h.nestedEditable=t})();CKEDITOR.config.widget_keystrokeInsertLineBefore=CKEDITOR.SHIFT+CKEDITOR.ALT+13;CKEDITOR.config.widget_keystrokeInsertLineAfter=CKEDITOR.SHIFT+13;CKEDITOR.config.plugins='dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,xml,ajax,templates,menu,contextmenu,copyformatting,div,resize,elementspath,enterkey,entities,popup,filetools,filebrowser,find,floatingspace,listblock,richcombo,font,fakeobjects,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastetools,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc,lineutils,widgetselection,widget';CKEDITOR.config.skin='moono-lisa';(function() {var setIcons = function(icons, strip) {var path = CKEDITOR.getUrl( 'plugins/' + strip );icons = icons.split( ',' );for ( var i = 0; i < icons.length; i++ )CKEDITOR.skin.icons[ icons[ i ] ] = { path: path, offset: -icons[ ++i ], bgsize : icons[ ++i ] };};if (CKEDITOR.env.hidpi) setIcons('about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,bgcolor,384,,textcolor,408,,templates-rtl,432,,templates,456,,copyformatting,480,,creatediv,504,,find-rtl,528,,find,552,,replace,576,,button,600,,checkbox,624,,form,648,,hiddenfield,672,,imagebutton,696,,radio,720,,select-rtl,744,,select,768,,textarea-rtl,792,,textarea,816,,textfield-rtl,840,,textfield,864,,horizontalrule,888,,iframe,912,,image,936,,indent-rtl,960,,indent,984,,outdent-rtl,1008,,outdent,1032,,smiley,1056,,justifyblock,1080,,justifycenter,1104,,justifyleft,1128,,justifyright,1152,,language,1176,,anchor-rtl,1200,,anchor,1224,,link,1248,,unlink,1272,,bulletedlist-rtl,1296,,bulletedlist,1320,,numberedlist-rtl,1344,,numberedlist,1368,,maximize,1392,,newpage-rtl,1416,,newpage,1440,,pagebreak-rtl,1464,,pagebreak,1488,,pastetext-rtl,1512,,pastetext,1536,,pastefromword-rtl,1560,,pastefromword,1584,,preview-rtl,1608,,preview,1632,,print,1656,,removeformat,1680,,save,1704,,selectall,1728,,showblocks-rtl,1752,,showblocks,1776,,source-rtl,1800,,source,1824,,specialchar,1848,,scayt,1872,,table,1896,,redo-rtl,1920,,redo,1944,,undo-rtl,1968,,undo,1992,,spellchecker,2016,','icons_hidpi.png');else setIcons('about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,bgcolor,384,auto,textcolor,408,auto,templates-rtl,432,auto,templates,456,auto,copyformatting,480,auto,creatediv,504,auto,find-rtl,528,auto,find,552,auto,replace,576,auto,button,600,auto,checkbox,624,auto,form,648,auto,hiddenfield,672,auto,imagebutton,696,auto,radio,720,auto,select-rtl,744,auto,select,768,auto,textarea-rtl,792,auto,textarea,816,auto,textfield-rtl,840,auto,textfield,864,auto,horizontalrule,888,auto,iframe,912,auto,image,936,auto,indent-rtl,960,auto,indent,984,auto,outdent-rtl,1008,auto,outdent,1032,auto,smiley,1056,auto,justifyblock,1080,auto,justifycenter,1104,auto,justifyleft,1128,auto,justifyright,1152,auto,language,1176,auto,anchor-rtl,1200,auto,anchor,1224,auto,link,1248,auto,unlink,1272,auto,bulletedlist-rtl,1296,auto,bulletedlist,1320,auto,numberedlist-rtl,1344,auto,numberedlist,1368,auto,maximize,1392,auto,newpage-rtl,1416,auto,newpage,1440,auto,pagebreak-rtl,1464,auto,pagebreak,1488,auto,pastetext-rtl,1512,auto,pastetext,1536,auto,pastefromword-rtl,1560,auto,pastefromword,1584,auto,preview-rtl,1608,auto,preview,1632,auto,print,1656,auto,removeformat,1680,auto,save,1704,auto,selectall,1728,auto,showblocks-rtl,1752,auto,showblocks,1776,auto,source-rtl,1800,auto,source,1824,auto,specialchar,1848,auto,scayt,1872,auto,table,1896,auto,redo-rtl,1920,auto,redo,1944,auto,undo-rtl,1968,auto,undo,1992,auto,spellchecker,2016,auto','icons.png');})();CKEDITOR.lang.languages={"af":1,"sq":1,"ar":1,"az":1,"eu":1,"bn":1,"bs":1,"bg":1,"ca":1,"zh-cn":1,"zh":1,"hr":1,"cs":1,"da":1,"nl":1,"en":1,"en-au":1,"en-ca":1,"en-gb":1,"eo":1,"et":1,"fo":1,"fi":1,"fr":1,"fr-ca":1,"gl":1,"ka":1,"de":1,"de-ch":1,"el":1,"gu":1,"he":1,"hi":1,"hu":1,"is":1,"id":1,"it":1,"ja":1,"km":1,"ko":1,"ku":1,"lv":1,"lt":1,"mk":1,"ms":1,"mn":1,"no":1,"nb":1,"oc":1,"fa":1,"pl":1,"pt-br":1,"pt":1,"ro":1,"ru":1,"sr":1,"sr-latn":1,"si":1,"sk":1,"sl":1,"es":1,"sv":1,"tt":1,"th":1,"tr":1,"ug":1,"uk":1,"vi":1,"cy":1};}()); diff --git a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/plugins/dialog/styles/dialog.css b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/plugins/dialog/styles/dialog.css index 9fbcaba3e..add83eb22 100644 --- a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/plugins/dialog/styles/dialog.css +++ b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/plugins/dialog/styles/dialog.css @@ -1,18 +1,18 @@ -.cke_dialog_open { - overflow: hidden; -} - -.cke_dialog_container { - position: fixed; - overflow-y: auto; - overflow-x: auto; - width: 100%; - height: 100%; - top: 0; - left: 0; - z-index: 10010; -} - -.cke_dialog_body { - position: relative; -} +.cke_dialog_open { + overflow: hidden; +} + +.cke_dialog_container { + position: fixed; + overflow-y: auto; + overflow-x: auto; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 10010; +} + +.cke_dialog_body { + position: relative; +} diff --git a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsdialog/plugin.js b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsdialog/plugin.js index d14f6c10d..9a031c677 100644 --- a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsdialog/plugin.js +++ b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsdialog/plugin.js @@ -876,7 +876,7 @@ CKEDITOR.DIALOG_STATE_BUSY = 2; var element = this._.element, definition = this.definition, documentBody = CKEDITOR.document.getBody(), - baseFloatZIndex = this._.editor.config.baseFloatZIndex; + baseFloatZIndex = this._.editor.config.baseFloatZIndex + 10000000; if ( !( element.getParent() && element.getParent().equals( documentBody ) ) ) { element.appendTo( documentBody ); @@ -902,7 +902,7 @@ CKEDITOR.DIALOG_STATE_BUSY = 2; if ( CKEDITOR.dialog._.currentZIndex === null ) { CKEDITOR.dialog._.currentZIndex = baseFloatZIndex; } - this._.element.getFirst().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex += 10 ); + this._.element.getFirst().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex += 10 ); // to cover CMS' structure board this.getElement().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex ); // Maintain the dialog ordering and dialog cover. @@ -2306,7 +2306,7 @@ CKEDITOR.DIALOG_STATE_BUSY = 2; skinName = ( CKEDITOR.skinName || editor.config.skin ), backgroundColorStyle = config.dialog_backgroundCoverColor || ( skinName == 'moono-lisa' ? 'black' : 'white' ), backgroundCoverOpacity = config.dialog_backgroundCoverOpacity, - baseFloatZIndex = config.baseFloatZIndex, + baseFloatZIndex = config.baseFloatZIndex + 10000000, coverKey = CKEDITOR.tools.genKey( backgroundColorStyle, backgroundCoverOpacity, baseFloatZIndex ), coverElement = covers[ coverKey ]; diff --git a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/icons/cmsplugins.svg b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/icons/cmsplugins.svg index 0577e7d6d..8ee30c821 100644 --- a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/icons/cmsplugins.svg +++ b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/icons/cmsplugins.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/plugin.js b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/plugin.js index 2620737ef..e84d80cd4 100644 --- a/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/plugin.js +++ b/djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/plugin.js @@ -63,62 +63,59 @@ init: function (editor) { var that = this; - this.options = CMS.CKEditor.options.settings; - this.editor = editor; - /** * populated with _fresh_ child plugins */ this.child_plugins = []; - this.setupCancelCleanupCallback(this.options); + var settings = CMS.CKEditor.editors[editor.id].settings; + this.setupCancelCleanupCallback(settings); // don't do anything if there are no plugins defined - if (this.options === undefined || this.options.plugins === undefined) { + if (settings === undefined || settings.plugins === undefined) { return false; } - this.setupDialog(); + this.setupDialog(editor); // add the button - this.editor.ui.add('cmsplugins', CKEDITOR.UI_PANELBUTTON, { + editor.ui.add('cmsplugins', CKEDITOR.UI_PANELBUTTON, { toolbar: 'cms,0', - label: this.options.lang.toolbar, - title: this.options.lang.toolbar, + label: settings.lang.toolbar, + title: settings.lang.toolbar, className: 'cke_panelbutton__cmsplugins', modes: { wysiwyg: 1 }, editorFocus: 0, panel: { - css: [CKEDITOR.skin.getPath('editor')].concat(that.editor.config.contentsCss), - attributes: { 'role': 'cmsplugins', 'aria-label': this.options.lang.aria } + css: [CKEDITOR.skin.getPath('editor')].concat(editor.config.contentsCss), + attributes: { 'role': 'cmsplugins', 'aria-label': settings.lang.aria } }, // this is called when creating the dropdown list onBlock: function (panel, block) { - block.element.setHtml(that.editor.plugins.cmsplugins.setupDropdown()); + block.element.setHtml(editor.plugins.cmsplugins.setupDropdown(editor)); var anchors = $(block.element.$).find('.cke_panel_listItem a'); anchors.bind('click', function (e) { e.preventDefault(); - that.addPlugin($(this), panel); + that.addPlugin($(this), panel, editor); }); } }); // handle edit event via context menu - if (this.editor.contextMenu) { - this.setupContextMenu(); + if (editor.contextMenu) { + this.setupContextMenu(editor); } - this.editor.addCommand('cmspluginsEdit', { + editor.addCommand('cmspluginsEdit', { exec: function () { - var element = that.getElementFromSelection(); + var element = that.getElementFromSelection(editor); var plugin = that.getPluginWidget(element); - if (plugin) { - that.editPlugin(plugin); + that.editPlugin(plugin, editor); } } }); @@ -127,10 +124,11 @@ // if event is a jQuery event (touchend), than we mutate // event a bit so we make the payload similar to what ckeditor.event produces var handleEdit = function (event) { - var element; + event.stop(); if (event.type === 'touchend' || event.type === 'click') { var cmsPluginNode = $(event.currentTarget).closest('cms-plugin')[0]; + var element; // pick cke_widget span // eslint-disable-next-line new-cap @@ -138,23 +136,32 @@ event.data = event.data || {}; // have to fake selection to be able to replace markup after editing - that.editor.getSelection().fake(element); + editor.getSelection().fake(element); } - that.editor.execCommand('cmspluginsEdit'); + editor.execCommand('cmspluginsEdit'); }; - this.editor.on('doubleclick', handleEdit); - this.editor.on('instanceReady', function () { + editor.on('doubleclick', handleEdit); + + editor.on('instanceReady', function () { +/* + var context = CMS.$('iframe.cke_wysiwyg_frame'); + if (context.length > 0) { + context = context.contentWindow.document.documentElement; + } else { + context = null; + } CMS.$('cms-plugin', CMS.$('iframe.cke_wysiwyg_frame')[0] .contentWindow.document.documentElement).on('click touchend', handleEdit); +*/ }); - this.setupDataProcessor(); + this.setupDataProcessor(editor); }, - getElementFromSelection: function () { - var selection = this.editor.getSelection(); + getElementFromSelection: function (editor) { + var selection = editor.getSelection(); var element = selection.getSelectedElement() || selection.getCommonAncestor().getAscendant('cms-plugin', true); @@ -168,7 +175,7 @@ return element.getAscendant('cms-plugin', true) || element.findOne('cms-plugin'); }, - setupDialog: function () { + setupDialog: function (editor) { var that = this; var definition = function () { return { @@ -183,7 +190,7 @@ } ] }], - onOk: function () { + onOk: function (dialog) { var iframe = $(CKEDITOR.dialog.getCurrent().parts.contents.$).find('iframe').contents(); var iframeUrl = iframe[0].URL; @@ -202,11 +209,10 @@ } // in case it's a fresh text plugin children don't have to be // deleted separately - if (!that.options.delete_on_cancel && addedChildPlugin) { + if (!editor.config.settings.delete_on_cancel && addedChildPlugin) { that.child_plugins.push(data.plugin_id); } - - that.insertPlugin(data); + that.insertPlugin(data, dialog.sender._.editor); CMS.API.Helpers.onPluginSave = onSave; return false; @@ -220,11 +226,11 @@ CKEDITOR.dialog.add('cmspluginsDialog', definition); }, - setupDropdown: function () { + setupDropdown: function (editor) { var tpl = '
'; // loop through the groups - $.each(this.options.plugins, function (i, group) { + $.each(editor.config.settings.plugins, function (i, group) { // add template tpl += '

' + group.group + '

'; tpl += '