Изменения документа VelocityMacros
Редактировал(а) Dmitriy Rybakov 20.06.2025 11:29
От версии 1.1
отредактировано superadmin
на 27.05.2025 04:11
на 27.05.2025 04:11
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/15.10.12]
К версии 2.1
отредактировано Dmitriy Rybakov
на 20.06.2025 11:29
на 20.06.2025 11:29
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/16.10.8]
Сводка
-
Свойства страницы (2 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Автор документа
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +xwiki:XWiki.rybakovds - Содержимое
-
... ... @@ -168,6 +168,12 @@ 168 168 #if ($source.restricted == 'true' && !$services.security.authorization.hasAccess('edit', $source.documentReference)) 169 169 #set ($parameters.attributes.data-upload-disabled = 'true') 170 170 #end 171 + ## We use the velocity template context to convey the startupFocus parameter to CKEditor. 172 + #if ($wysiwygEditorConfig.startupFocus) 173 + #set ($parameters.attributes.data-startup-focus = 'true') 174 + ## We make sure to clear this context so that it doesn't interfere with CKEditors opened later. 175 + #set ($wysiwygEditorConfig.startupFocus = false) 176 + #end 171 171 ## 172 172 <textarea 173 173 #foreach ($entry in $parameters.attributes.entrySet()) ... ... @@ -180,7 +180,7 @@ 180 180 181 181 #macro (displayCKEditorConfigProperty $configDoc $propName $action) 182 182 <dt> 183 - <label>$configDoc.displayPrettyName($propName)</label> 189 + <label for="CKEditor.ConfigClass_$escapetool.xml($configDoc.getObject("CKEditor.ConfigClass").getNumber())_${propName}">$configDoc.displayPrettyName($propName)</label> 184 184 <span class="xHint">$escapetool.xml($services.localization.render("CKEditor.ConfigClass_${propName}.hint"))</span> 185 185 </dt> 186 186 <dd>#displayCKEditorConfigPropertyValue($configDoc $propName $action)</dd>