Изменения документа AdminSection

Редактировал(а) Dmitriy Rybakov 04.10.2024

От версии 2.1
отредактировано Dmitriy Rybakov
на 04.10.2024
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/15.10.12]
К версии 1.1
отредактировано Полина Герасимова
на 20.09.2024
Изменить комментарий: Install extension [org.xwiki.contrib:application-ckeditor-ui/1.37]

Сводка

Подробности

Свойства страницы
Автор документа
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.rybakovds
1 +xwiki:XWiki.gerasimovapd
XWiki.ConfigurableClass[0]
configureGlobally
... ... @@ -1,0 +1,1 @@
1 +Да
scope
... ... @@ -1,1 +1,0 @@
1 -WIKI
XWiki.JavaScriptExtension[0]
Код
... ... @@ -2,7 +2,7 @@
2 2   var adminPageContent = $('#admin-page-content');
3 3   var forms = adminPageContent.find('form');
4 4   // Check if we need to enhance the WYSIWYG administration section with tabs (one tab for each editor).
5 - if (forms.length < 2 || forms.is('#wysiwyg')) {
5 + if (forms.size() < 2 || forms.is('#wysiwyg')) {
6 6   // Either there is only one editor available or the WYSIWYG administration section handles the tabs itself
7 7   // (XWiki 9.2RC1+). Leave the administration page as it is.
8 8   // This JavaScript code is executed after the page has been loaded so in order to avoid flickering UI we hide the
... ... @@ -17,7 +17,7 @@
17 17   };
18 18  
19 19   // Use tabs to configure each of the available editors.
20 - var editorTabList = $('<ul class="nav nav-tabs" role="tablist"></ul>').prependTo(adminPageContent);
20 + var editorTabList = $('<ul class="nav nav-tabs" role="tablist"/>').prependTo(adminPageContent);
21 21   var editorTabContent = $('<div class="tab-content">').insertAfter(editorTabList);
22 22   forms.each(function() {
23 23   // The Bootstrap Tab plugin uses the tab id in a CSS selector and since dot is a special character we need to avoid
... ... @@ -31,18 +31,18 @@
31 31   'href': '#' + tabId,
32 32   'data-editorId': tabName.toLowerCase()
33 33   }).text(tabName)
34 - .on('click', function(event) {
34 + .click(function(event) {
35 35   event.preventDefault();
36 36   $(this).tab('show');
37 37   });
38 38   // Add the tab content.
39 - $('<div role="tabpanel" class="tab-pane"></div>').attr('id', tabId).appendTo(editorTabContent)
39 + $('<div role="tabpanel" class="tab-pane"/>').attr('id', tabId).appendTo(editorTabContent)
40 40   .append($(this).closest('#admin-page-content > *'));
41 41   });
42 42  
43 43   // Show the configuration for the active editor, or the first one if none is active.
44 44   var activeTab = editorTabList.find('a[data-editorId="$!services.edit.syntaxContent.defaultWysiwygEditor.descriptor.id"]');
45 - if (!activeTab.length) {
45 + if (activeTab.size() === 0) {
46 46   activeTab = editorTabList.find('a').first();
47 47   }
48 48   activeTab.tab('show');
XWiki.StyleSheetExtension[0]
Код
... ... @@ -2,8 +2,7 @@
2 2   This is not needed anymore starting with XWiki 9.2RC1. */
3 3  #admin-page-content > form,
4 4  #admin-page-content > .codeToExecute,
5 -#admin-page-content > h1.wikigeneratedheader,
6 -#admin-page-content > h2.wikigeneratedheader {
5 +#admin-page-content > h1.wikigeneratedheader {
7 7   display: none;
8 8  }
9 9  #admin-page-content.visible > form,