|author||Paladox none <firstname.lastname@example.org>||Wed Aug 04 17:52:52 2021 +0000|
|committer||Paladox none <email@example.com>||Tue Aug 10 07:52:22 2021 +0000|
Stop propagation for all keys but exempt the save button This fixes an issue where if using contenteditable (default on mobile) and you typed "/", it would get intercepted within the app. Change-Id: I3bdf83bd64595c6238bb46736104fd0e668100c0 (cherry picked from commit 6a27089c51237743a8e7cae03837f921b0028b3b)
A plugin that uses CodeMirror to provide a rich code editing experience in PolyGerrit.
This plugin is rewritten into Polymer 3 syntax. The
gr-editor.js is the main entry for the plugin.
But to support the lazy load on the
codemirror with supported languages, we still have the
codemirror-element.html as an asset which still built separately as an html.
We may consider drop the selectively language support and in favor of all-in-one bundle in the future or change build rule to support bundle
js to move off of the html completely.
To run UI tests here will need install dependencies from both npm and bower.
npm run wct-test should take care both for you, read more in
You will need
polymer-bridges which is a submodule you can clone from: https://gerrit-review.googlesource.com/admin/repos/polymer-bridges
As polymer 3 no longer support
Polymer.importHref anymore, Gerrit still supports through a custom implementation, the implementation is copied here for testing purpose (
bazel build :codemirror_editor
gerrit/plugins/codemirror-editor/folder and it will automatically served at
If your plugin is already enabled, then you can block it and then inject the compiled local verison.
See more about how to use dev helper extension to help you test here: https://gerrit.googlesource.com/gerrit-fe-dev-helper/+/master