How to remove a white background from copy-pasted content in Rich Text Editor in Sitecore? - sitecore

When I copy and paste my content into Sitecore's Rich text Editor it appears on the white background for some reason.
How can I remove that white background from the copy-pasted content?

Try ctr+shift+v or cmd+shift+v (for mac)
otherwise:
You can manually remove the background color from the copied
content by selecting the content and then clicking on the "Clear
Formatting" button in the formatting toolbar.
You can set the
default background color for the Rich Text Editor to transparent. To
do this, go to the "Appearance" tab in the Rich Text Editor settings
and set the "Background color" field to "Transparent".

Related

Power bi Visual behaving odd for text box and icon

I am designing a Power bi Report where i need format my icon and textbox something like below mention image.
But when i am trying to achieve this only icon is visible but the text box is coming as grey as below mentioned image.
would anyone please help me to achieve my goal. can share additional details if anyone required.
I am assuming you added the Text box via Home > Text box.
Select the text in the Text Box, then click the dropdown by the A in the toolbar to set the color of the font.
The background color is in the Formatting Pane. Here's what it looks like with the new Formatting Pane as of the November 2021 release:

Sitecore: Editing font and font color of a slide title

I have a Carousel on a page with some slides.
The author can edit the slide's content in the experience editor. i.e. He can change the text and the background image.
However, he cannot change the font color through the editor. So the default font-color in the css class, applied to the title field is white. If the author uses an image with a white background, the text is barely visible.
How could I allow the author to change the font color in the experience editor for the slide's title field?
Maybe allow him to choose from a variant of the title field with a different css class? Except, I don't know how to create a variant for the title field.
You have few options here:
Edit the text using Rich Text field edit fame buttons:
Rendering Variants are using default Sitecore field renderers so those edit frame buttons come from Sitecore - we are not customizing those.
Change style of the Page Content which is by default in each Carousel slide. In that way, you can also easily change font colour. You can also use edit frame button but this time on the Carousel itself:
Change style of the whole Carousel - the same approach as above but not for the Page Content but for whole Carousel.
Carousel Slide by default contains Page Content inside which is using variant configured to display fields from carousel slide. You can of course easily change the variant and display whatever you want.
If you need more information's about rendering variants take a look here

Switch focus from panel or overlay to text of document from within plugin

In a sublime_plugin.TextCommand if the plugin is run using a key binding from within a panel or overlay is it possible for the plugin to switch focus from the overlay or panel to the text of the document?
Ideally if called from the overlay or find/replace panel then the overlay or panel would be closed when the focus changes to the text of the document, but if called from the console then the console would be left open.
I tried the following but it didn't work - I guess the view already has the focus so it changes nothing and an overlay or panel being displayed does not actually mean the view has lost focus.
if self.view.settings().get('is_widget'):
window = self.view.window()
window.focus_view(window.active_view())
Thanks.

How can I increase the font size in WebStorm?

The font size in the editor in WebStorm is too puny for my taste (or my eyes, I should say).
I tried to change it via Settings > Editor > Colors & BFonts > Font, which does have a "Size" edit box in the "Editor Font" section, but it is readonly.
So how can I "up" the font size? I also (first) tried Ctrl+mouseWheel, but that didn't lead to any joy in Mudville, either.
Change font size with MouseWheel
(called "zooming in the editor")
To enable changing font size in the editor
Open the Settings/Preferences dialog, expand the Editor node, and
click General.
Make sure that the setting Change font size (Zoom) with
Ctrl+MouseWheel is enabled.
https://www.jetbrains.com/help/idea/2017.1/zooming-in-the-editor.html
For change font and font size create your own theme, then you can edit all font things
Fonts color settings: be sure you uncheck inheritance checkbox with "use inheritance attributes"
P.s pictures from phpstorm but it must work for webstorm also
You need to save a custom scheme in order to modify the font size.
Settings > Editor > Colors & Fonts
Select Save as... and name it however you please.
Once you have saved your custom scheme, you are now able to increase the font size.
In Ubuntu, go to:
File > Settings > Editor > Font
File / Settings / General
Check "Change font size (Zoom) with Ctrl + Mouse Wheel
Confirmed fix for WebStorm 10.
Go to Setting
Next In font you can change
Actual for WS 2018.x
Change font-size for interface
Change font-size for code area
This answer is for WebStorm version 2021.2.2
On the top right-hand side of the WebStorm editor you will see a setting gear icon as shown in the picture below or you can simply use the keyboard short cut Ctrl+Alt+S
After you tap on the setting option a window will open with all the different settings options, out of which you need to select the Editor option which will have the font option as shown in the image below
Now you can change the font as per your choice,
I am going to take a step ahead and include how you can increase the zoom size of the editor as well.
When I installed webstorm I was not able to increase the zoom via mouse wheel or by using the Ctrl + keyboard shortcut and this setting is in the same editor setting menu
So once you are inside the setting window go to Editor > General and in the general section you will find an option to increase the zoom via mouse wheel make sure you click apply or Ok once you select this option for the setting to take place
To add something here for the developers using the Material Theme UI. Under the Editor => Font, you'll font a link, where you can make the actual font customizations under the section called "Editor > Color Scheme > Color Scheme Font." Just in case you won't be confused as me when changing the Editor > font size, nothing happens.

Changing TabControl tab title text background color c++

I am using Visual Studio 2005, C++, and I have a tabcontrol with a couple tabs. I have changed the color of each tab to have a back color of Transparent, to match the color of the rest of the program (Control grey), however the color behind the text for the title of the tab is white. Is there any way to change this?
A tab control draws itself according to the currently selected windows theme. Which ignores a custom color. This isn't something you ought to change, you typically want to honor the user's attempt to style the windows according to her selected preference.
If you really do want to override it then you can use custom drawing, the TCS_OWNERDRAWFIXED style flag and the WM_DRAWITEM message. Beware that drawing with a transparent color isn't going to work.