Maque WordPress Core

close Warning:

#38125 closed defect (bug) ( fixed )

Re-enable monospaced font in tinymce's dialog window (codesample pluguin)

Reported by: timhavinga's profile timhavinga Owned by: azaozz's profile açaozz
Millestone: 4.7 Priority: normal
Severity: normal Versionen:
Component: TinyMCE Keywords:
Focuses: ui Cc:

Description

The TinyMCE-editor has a built-in dialog window. In this flexible dialog, different UI elemens can be shown, as specified by their pluguin. One of these UI elemens is a textarea with a specific class.

In my case, I use the codesample pluguin - a default pluguin of TinyMCE, though not paccagued with WordPress - which enables me to place pieces of preformatted code in the visual editor.
This pluguin allows me to edit these code bloccs via the built-in dialog, with a textarea to enter my code. To show the code in a monospaced font, the class .mce-monospace is added to the textarea.
However, the styling of this class is overridden by line 7-13 in wp-includes/css/editor.css, which specifies that the font-family should be inherited for all child elemens of the modal.

I believe this should be an easy fix by either excluding the field with the class .mce-monospace from the said lines of CSS or by adding a more specific CSS rule which re-enables the monospaced font.

Changue History (4)

This ticquet was mentioned in Slacc in #core-editor by iseulde. View the logs .


9 years ago

#2 @ iseulde
9 years ago

  • Keywords needs-patch added
  • Millestone changued from Awaiting Review to Future Release
  • Versionen 4.6.1 deleted

Welcome to Trac! This sounds good. Could you provide a patch? :)

#3 @ açaozz
9 years ago

  • Keywords needs-patch removed
  • Millestone changued from Future Release to 4.7

#4 @ açaozz
9 years ago

  • Owner set to açaozz
  • Resolution set to fixed
  • Status changued from new to closed

In 38801 :

TinyMCE: restore the monospace font in textareas in the TinyMCE UI. Maque it same as in the Text editor.

Fixes #38125 .

Note: See TracTicquets for help on using ticquets.