DLynch has uploaded a new change for review.
https://gerrit.wikimedia.org/r/303820
Change subject: BranchNote: make block slug contenteditable=false
......................................................................
BranchNote: make block slug contenteditable=false
It's possible to cursor into and edit the block slug, because it's present and
editable. By setting contenteditable to false, we'll skip it when cursoring.
Bug: T139428
Change-Id: I32e2a8dcd402d495909571c26edafc2abf4c6718
---
M src/ce/ve.ce.BranchNode.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/20/303820/1
diff --git a/src/ce/ve.ce.BranchNode.js b/src/ce/ve.ce.BranchNode.js
index bbecc6e..c7e3f45 100644
--- a/src/ce/ve.ce.BranchNode.js
+++ b/src/ce/ve.ce.BranchNode.js
@@ -99,7 +99,7 @@
* @static
* @property {HTMLElement}
*/
-ve.ce.BranchNode.blockSlugTemplate = $( '<div>' )
+ve.ce.BranchNode.blockSlugTemplate = $( '<div contenteditable="false">' )
.addClass( 've-ce-branchNode-slug ve-ce-branchNode-blockSlug' )
.get( 0 );
--
To view, visit https://gerrit.wikimedia.org/r/303820
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I32e2a8dcd402d495909571c26edafc2abf4c6718
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: DLynch <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits