Static font size preview in combobox panel - ckeditor - ckeditor

How can I set a static font size, e.g. 14px, in the font size combobox panel in ckeditor? By default it previews the actual size. Since the width of the panel is static, font sizes above 72 are not shown.
Wanted: Static font-size preview in combobox panel
Default: Dynamic font-size preview in combobox panel
Br
Martin

You can override the list item style in content.css. Add this style definition:
.cke_panel_listItem span {
font-size: 14px !important;
}
Here's a screenshot after applying this change:

Related

Nativescript: How to disable button text from default text opacity on highlighted state

I have Button element and I want to disable the default opacity fade of the Button text when the Button is pressed. I tried to override the behavior by using the pseudoselector :highlighted { opacity: 1; } but it didn't do anything.

How to toggle the UITabBar translucent property with NativeScript?

I want my TabView bar to be the same color as my layout. There was a flat boolean added to NS to make this possible with the ActionBar, but how can I achieve this with my tab bar as well? If I set the tab-background-color property to black, I want it to actually be black, not dark grey due to the translucent property explained here: https://developer.apple.com/documentation/uikit/uitabbar/1623458-translucent?language=objc
I've found many posts/articles about solving this for the ActionBar but haven't seen anything about tabs yet
Try this on loaded event of TabView
onTabViewLoaded(args) {
const tabView = args.object;
if (tabView.ios) {
tabView.ios.tabBar.translucent = true; // false;
}
}

How can I change the Font Size and Weight for the Back Arrow and Back Text in a Navigation Page?

I had a similar question on how to change the font of the title which is here:
How can I change the Font Size and Weight for the Header in a Navigation Page?
Now I have that changed does anyone know how to also change the font size and weight for the top back arrow and the message that goes with it at the top of a navigation page? Seems like these are not part of the title as they have retained the original font size and weight.
I think this issue only occurs on iOS platform, so the solution is
Set UIBarButtonItem Appearance in FinishedLaunching in AppDelegate
UITextAttributes att = new UITextAttributes();
att.Font = UIFont.SystemFontOfSize(20.0 , FontAttributes.Bold); // size and weight
UIBarButtonItem.AppearanceWhenContainedIn(new Type[] { typeof( UINavigationBar) }).SetTitleTextAttributes(att, UIControlState.Normal);
UIBarButtonItem.AppearanceWhenContainedIn(new Type[] { typeof(UINavigationBar) }).SetTitleTextAttributes(att, UIControlState.Highlighted);

NSTextView not changing font size or colour from NSFontPanel

I created a basic NSTextView, I selected the following options in Interface Builder:
Editable
Selectable
Field Editor
Rich Text
Undo
Graphics
Non-contiguous Layout
Font Panel
Ruler
Inspector Bar
I set the NSViewController to be the delegate of the NSTextView and the only other custom thing I've done for this NSTextView is to enable inserting tabs and new lines (by accepting First responder):
func textView(_ textView: NSTextView, doCommandBy commandSelector: Selector) -> Bool {
if commandSelector == #selector(insertNewline(_:)) {
textView.insertNewlineIgnoringFieldEditor(self)
return true
} else if commandSelector == #selector(insertTab(_:)) {
textView.insertTabIgnoringFieldEditor(self)
return true
} //else if commandSelector == #selector(changeColor(_:)) {
//textView.setTextColor(NSFontPanel.colo, range: <#T##NSRange#>)
//}
return false
}
When I try to use the commands from the Font Panel + Inspector Bar, All the commands work fine except changing Font size or colour, is there anything that could be wrong? Or do I need to do extra binding/delegates, etc for this to work?
It is strange because if I change the Font itself (of a selected text) or the weight, it works fine (no coding was needed).
Update
I've found the root of the problem causing this. I'm displaying the TextView in a ViewController that is displayed using a Modal segue. If I change from Modal to Show, the size and colour work fine. There's also no need for the extra commands for insert new line and tab.
Is there any reason why this is the case? Is there any customisation that should be done to the segue to avoid this? And, why is the view controller presentation affecting the behaviour of the font panel?
NSFontPanel has a 'worksWhenModal' property which sounds as if it might be set to 'false'.
A Boolean that indicates whether the receiver allows fonts to be changed in modal windows and panels.
Documentation:

iOS Statusbar text color when there is no Actionbar

I want to color my Statusbar text white. This is no problem when i have an Actionbar, but when i set the actionbar to hidden, the color is black again.
This is the code i used:
<page actionBarHidden="true" backgroundSpanUnderStatusBar="true"></page>
And this is the javascript code:
var navigationBar = frameModule.topmost().ios.controller.navigationBar;
navigationBar.barStyle = 1;
Question: How to color the statusbar when there is no actionbar?
You could find solution of this behavior in this GitHub issue:here

Resources