-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Editor controls shown when running with --no-edit
#1785
Comments
I guess the most straightforward way to implement this would be to override the CSS for |
Is it possible to change the text on the error page? That way the user could be pointed to the process needed to update the page using a different route. |
I think that if you start So I think the only way forward is to either
|
I would be happy to submit a PR to resolve this issue, but I don't think I have the time to until February. |
Thanks @benjaminwil ! I think that timeline is perfectly acceptable.
If we can fix it in the templates then that would have my preference. |
I started investigating this issue more deeply today. I've discovered a couple of interesting things:
So I don't think any hacky fixes are required to resolve this issue. It seems it's just a matter of telling |
I am actually unsure what it means for a heading to have the class "editable". If we removed this class from all headers, what would we be losing? Maybe @dometto knows? |
I've made a PR against I believe I'm taking a reasonable approach but am open to other strategies. |
The "editable" class indicates that the pencil icon should be shown when hovering above it, and is used for the per-section-editing functionality. Not all headers can be edited per section, as is explained here. So unfortunately we can't lose the class entirely! |
I've merged the pull request that resolves this issue: gollum/gollum-lib#415. It should be live in the next release of |
Released in |
5.2.4 / 2023-03-22 * Bugfix release: address XSS vulnerability ( @6661620a, @dometto) 5.2.3 / 2023-03-13 * Bugfix release: update adapter dependencies for Ruby 3.2 support. 5.2.2 / 2023-01-18 * Bugfix release: set Nokogiri default XHTML conversion options more relaibly. See sparklemotion/nokogiri#2761 5.2.1 / 2022-09-13 * Fixed: 'controls' attribute in audio and video tags should not be sanitized. #430 (@dometto) 5.2 / 2022-05-28 * Conditionally render "editable" heading classes. Resolves gollum/gollum#1785 (@benjaminwil) * Improvement: Allow escaping quotations in quoted macro arguments. #406. (@srbaker) * Improvement: [Allow for extended PlantUML types](https://github.com/gollum/gollum/wiki#plantuml-diagrams). #413. (@manofstick) * API Addition: allow defining handlers for specific languages in codeblocks. #410. (@dometto) v5.1.2 * SECURITY UPDATE: sanitize HTML generated by Macros. v5.0.1 * Bugfix release: fix emoji when using base path. Thanks to @heavywatal. v5.0 For a detailed overview of changes in 5.0 and a guide to migrating your wiki, see https://github.com/gollum/gollum/wiki/5.0-release-notes * Removed support for Web Sequence Diagroms, PlantUML now default. ** PlantUML users in 4.x please note: in this release PlantUML uses the server at https://plantuml.com by default, not `localhost`. Use the config option to keep using your own server. v4.2.1 * Performances improvements * Dependency updates ruby-gollum-lib: 5.2.4
Please read the CONTRIBUTION GUIDELINES before submitting!
If your have problems using or installing the software which stem from bugs in the software or a lack of documentation, we are always happy to help out! However, for ordinary usage questions, please consider asking elsewhere, for instance on StackOverflow.
Describe the bug
Gollum shows edit controls when running with
--no-edit
.To Reproduce
Steps to reproduce the behavior:
gollum --host localhost --no-edit ...
.Expected behavior
Gollum should probably either hide the pencil icon or show it as grayed / disabled.
Environment Info
The text was updated successfully, but these errors were encountered: