-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWIKI-17664: When adding an annotation the focus should be inside WYSIWYG by default #3694
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2360eec
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 8ba454d
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 8306db2
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 c2fbd00
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 7ac4b35
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 368e04a
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 14dee2d
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 c90ab7e
Merge branch 'xwiki:master' into XWIKI-17664
Sereza7 10d3272
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 359f650
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 b7d3008
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 27ead97
XWIKI-17664: When adding an annotation the focus should be inside WYS…
Sereza7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -72,6 +72,10 @@ | |||||
|
||||||
<label for="$name">$services.localization.render('core.viewers.comments.add.comment.label')</label> | ||||||
#initRequiredSkinExtensions() | ||||||
## This startupFocus parameter is used by the CKEditor WYSIWYG editor. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Wrong indentation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! Fixed in 27ead97 👍 |
||||||
#set ($wysiwygEditorConfig = { | ||||||
'startupFocus': true | ||||||
}) | ||||||
## display of the comment field | ||||||
$doc.displayEdit($fieldToDisplay, '', $commentObj) | ||||||
|
||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be
startupFocus: startupFocus
? it's a key: value config object no?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's called "shorthand property name" see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#property_definitions (syntax sugar to reduce boilerplate).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know this notation well enough to use it either ^^'
#3694 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok thanks for the information, I'm not sure I'd have changed it since IMO it's not helping much reading but that's fine :)