MediaWiki talk:Gadget-JustifyParagraphs.css
Justified paragraphs in edit boxes
editTo me, justified paragraphs looks nice in articles, but in edit boxes the justified paragraphs just do not work for me. So after some experimentation I added the following to my common.css:
.CodeMirror pre { text-align: initial; }
That seems to have done the trick. text-align
is now reset to whatever is default in edit boxes and no longer justified. initial
can be replaced with left
if needed. Hopefully this hack can be found and be useful to anyone else having the same problem.
Seems I'm not the only one with this problem, see this achived 2018 thread in Village pump. According to that thread, the issue is the syntax highlighting tool. Unfortunately, I found it after I had already made my fix and I haven't had the chance to experiment with it. I don't know if this issue has been reported to the maintainers of that tool, nor do I know exactly where to report it. If someone could direct me to the correct venue, I'd really appreciate it.
In my opinion, this modification to the Justify paragraphs gadget (and/or whatever function is enabled through Preferences) should've been offered as an option, perhaps even the default, or at least mentioned somewhere. I guess it's mentioned here now, but those who end up here probably have the skills to do this change themselves. The better solution would probably be rectifying the original issue with the syntax highlighting tool, though. Anyway… Whoever ends up reading through this: Hi! And thanks for coming to my TED talk. 🗨 desoda (Talk | Contributions) 16:56, 7 August 2023 (UTC)