How to get TinyMCE to show Font-Family for text not in a span - tinymce-4

I notice that the Font Family button in TinyMCE shows the actual font-family of selected text - IF you've set the font family previously for that text with the Font Family button.
So in the image at the left below I've selected "some" and set it to Comic Sans with the standard TinyMCE Font Family button. Once I've done that, selecting "some" shows the Comic Sans font in the Font Family button. But selecting another word in the line that hasn't had it's font-family changed doesn't show it's font-family. (See right image.)
I know that setting font-famly puts the selection in a <span> that has that font-family style, so that appears to be the rule for showing the font-family: if it's specified in a <span> for the selection, it gets shown, otherwise selecting the text doesn't show its font-family.
I want to change this behavior so that when you select a word, its font is displayed in the Font Family button, whether the text is in a span or not.
Does anyone have any ideas for doing that?
Thanks

Related

Can letter-spacing be applied to UINavigationBar's title with Pixate?

The letter-spacing property appears to have no effect on the title child in a navigation bar using Pixate.
In iOS the UINavigationBar title's attributed text only supports font, text color, text shadow color, and text shadow offset. To get letter-spacing you need to create your own text field, assign the NSKernAttributeName attribute to it, and then assign it to the titleView of your NavigationItem. This is done per nav page, not generically for the UINavigationBar.

QLineEdit and Changing font for the “PlaceHolder” text

Is there a stylesheet tag I can use to change the font/font size of the placeholder text (and just that, leave the normal edit text as is) in QLineEdit?
The placeholder is shown only if text() is empty. Connect textChanged to your slot and set appropriate font using setFont. If text() is empty, set placeholder font, instead set normal font.

How to change the background color of a line of user input in a textarea?

I know how to change the background color of a textarea, but what about changing the background color of the text that users type into a text area?
For example, in HTML you can change the background color of a span of text using span tags, ie:
<span style="background-color: blue">Words with blue background</span>
...But what about the text that users type into a text field?
I need to do this for a form that I'm creating, so that users can clearly see spaces and returns they're entering as well as the characters they enter.
Can it be done using CSS?
No.
But there is the other way around.
Did you ever used editor in github.com? It's cool.
It uses javascript and <div> to control the style of each line of code.
And translate.google.com uses the same way.

Page title CSS style

Is it possible to change title font style?
I want to have my page title with font-variant: small-caps;
No we cant style it. For some information you can read W3C documentation about the title tag. It says:
The title is not part of the text of the document, but is a property
of the whole document. It may not contain anchors, paragraph marks, or
highlighting. The title may be used to identify the node in a history
list, to label the window displaying the node, etc. It is not normally
displayed in the text of a document itself. Contrast titles with
headings . The title should ideally be less than 64 characters in
length. That is, many applications will display document titles in
window titles, menus, etc where there is only limited room. Whilst
there is no limit on the length of a title (as it may be automatically
generated from other data), information providers are warned that it
may be truncated if long.

Google Custom Search Style Issues

I think I have a CSS issue with my Google Custom Search.
The search box and resutls that come up are not displaying correctly on my Custom Search.
The search box is squished and the "X" that shows up when the search is executed is not showing in the currect location.
Also, when the search is executed, the URL links are being "compressed". The blue underline is not showing up and the bottom portion of the font is getting cut off.
Any assistance is greatly appreciated.
http://structurology.com/search
.gs-result, .gs-title line height is too small it's 1.2em make it 1.8em that will fix the links and the underline.
as to the search box it's being affected by your th, td, caption padding.
Change .gscb_a font rule to the following for the X:
font: 27px/18px arial,sans-serif;

Resources