How to override paste notification for Paste as plain text button? - ckeditor

When users want to paste by clicking "Paste as plain text" button, the next message pops up "Press Ctrl+Shift+V to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option."
Is any way to override this message for all CKEditor instances?

The new version of CKEditor still has the paste, paste as text, and paste from word buttons in the full menu, but when clicked a nicer looking modal comes up saying to paste using CTRL + V. You can see a demo here: https://ckeditor.com/docs/ckeditor4/latest/examples/basicstyles.html
Even if you download the new version, you will still get a modal if you click one of the paste buttons.
If you want to remove the paste buttons from the menu (and simply tell users to use CTRL + V) and if you want to paste plain (unformatted) text with CTRL + V add this to your config.js file.
config.forcePasteAsPlainText = true;
config.removeButtons = 'Paste,PasteText,PasteFromWord';

Related

Copying text from the Anaconda Prompt on Windows [duplicate]

Does anyone know if it's possible to copy text from a Windows' command prompt or console window like the output of a command, console application or batch file?
Another option, if you know ahead of time that you want the results of a command to be placed on the clipboard, is to pipe your output to the CLIP utility.
Here are a two simple examples
echo Hello world!|clip
dir|clip
Right click > Mark
Select the text you want to copy by holding left mouse button and selecting text OR by navigating to the beginning of the text you want to copy with the arrow keys, pressing Shift, and moving (with the arrow keys) to the end of the text.
right click on the title bar, go into "Edit", and hit Copy.
Now you can paste in Notepad or in Command Prompt again by right-clicking on the title bar, going into "Edit", and hitting "Paste."
Open a command window, then right click on the title bar and left click on Properties at bottom of context menu. On the Options tab add a check-mark at QuickEdit Mode. Click OK and in the next dialog select the second radio button so that every command window that you will open in future has got this option enabled. Close the dialog with OK.
Now you can select text using left click on your mouse. To copy the text to the clipboard, just press the Enter key.
Follow these steps:
Move pointer with pointing device (mouse, touchpad, pointing stick, ...) over the window, press right button to open the context menu and left click on first context menu option Mark.
After that action select the text with holding left button (rectangular selection).
After selecting hit key Enter or Return to copy selected text to clipboard.
Paste copied text anywhere with Ctrl+V.
Right Click > Mark
Select the text you want to copy with left click held
Right click on the selected text
Paste where you want
Sure you can! right-click, choose mark, select the needed text and right click again to copy the text.
You could also choose QuickEdit mode from the cmd menu, that way you don't have to right click and select mark, but can select copy directly.
Haloo my friend :
if you want to copy any text which was currently in the clipboard in
the Cmd or in the PowerShell you should Just :
1\ Write any command that you want .
2\before pressing enter write |clip and then press Enter .
3\Open any text Editor such as Notepad .
4\ Ctrl+v or Right click -Paste .
and her you have the clipboard in your Text Editor ^_^ .
On PowerShell:
Copy contents in a text file to the clipboard. Use
cat filename.txt | clip
the contents will be copied to the clipboard.
Now, it's ready to ctrl + v
If you right click and mark in the context menu you can then drag to edit the selection and then press Ctrl+c and it should copy to the clipboard
Select the text you want to copy.
Then right click and select copy from menu.
To paste in cmd right click, the text you copied should be pasted

Is there a way to create a hotkey to print a specific string in xcode?

Is there a way to create a hotkey to print a specific string in xcode?
For example if "H" is my hotkey, every time I click "H" it should paste "Hello" on my editor.
This would help when inserting standard fixed comments when coding.
Thanks in advance.
It's easy to do it with Xcode code snippets. First you need to create a content (your comment or code or both). Select your content by dragging mouse on it. Release your mouse then click again on the selected part of text for a second. While holding, your mouse cursor symbol will change to the pointer symbol - drag this content to code snippets library. Xcode will create new code snipped for you. It will be placed at the bottom of all snippets in snippets library with the name "My Code Snippet". Double click it. Then press "Edit" button. Name it in the field "Title". Write summary you want. Choose platform "All" or "iOS" or "OS X". Select add completion shortcut for example "hello" for "//hello comment". Once you've done with all changes press "Done" button. Every time you will write "hello" Xcode will show a pop up with snippet title you have created. Select it and press "Enter" key and your comment will be placed right there where you wrote "hello".
Animated gif shows how you can do this:

Copy text from a Windows CMD window to clipboard

Does anyone know if it's possible to copy text from a Windows' command prompt or console window like the output of a command, console application or batch file?
Another option, if you know ahead of time that you want the results of a command to be placed on the clipboard, is to pipe your output to the CLIP utility.
Here are a two simple examples
echo Hello world!|clip
dir|clip
Right click > Mark
Select the text you want to copy by holding left mouse button and selecting text OR by navigating to the beginning of the text you want to copy with the arrow keys, pressing Shift, and moving (with the arrow keys) to the end of the text.
right click on the title bar, go into "Edit", and hit Copy.
Now you can paste in Notepad or in Command Prompt again by right-clicking on the title bar, going into "Edit", and hitting "Paste."
Open a command window, then right click on the title bar and left click on Properties at bottom of context menu. On the Options tab add a check-mark at QuickEdit Mode. Click OK and in the next dialog select the second radio button so that every command window that you will open in future has got this option enabled. Close the dialog with OK.
Now you can select text using left click on your mouse. To copy the text to the clipboard, just press the Enter key.
Follow these steps:
Move pointer with pointing device (mouse, touchpad, pointing stick, ...) over the window, press right button to open the context menu and left click on first context menu option Mark.
After that action select the text with holding left button (rectangular selection).
After selecting hit key Enter or Return to copy selected text to clipboard.
Paste copied text anywhere with Ctrl+V.
Right Click > Mark
Select the text you want to copy with left click held
Right click on the selected text
Paste where you want
Sure you can! right-click, choose mark, select the needed text and right click again to copy the text.
You could also choose QuickEdit mode from the cmd menu, that way you don't have to right click and select mark, but can select copy directly.
Haloo my friend :
if you want to copy any text which was currently in the clipboard in
the Cmd or in the PowerShell you should Just :
1\ Write any command that you want .
2\before pressing enter write |clip and then press Enter .
3\Open any text Editor such as Notepad .
4\ Ctrl+v or Right click -Paste .
and her you have the clipboard in your Text Editor ^_^ .
On PowerShell:
Copy contents in a text file to the clipboard. Use
cat filename.txt | clip
the contents will be copied to the clipboard.
Now, it's ready to ctrl + v
If you right click and mark in the context menu you can then drag to edit the selection and then press Ctrl+c and it should copy to the clipboard
Select the text you want to copy.
Then right click and select copy from menu.
To paste in cmd right click, the text you copied should be pasted

How to add "Last Position" button to my tool bar in VB6 IDE

I did this before but can't remember how the heck I did it.
I want to have a button on my vb6 IDE toolbar that takes me back to the previous place I was in the code (in my "history) -- an incredibly useful feature.
I have it in my properties (right-click) menu but don't see it in the other menus from which I could drag it to the Toolbar.
Any ideas?
This should do it:
In the IDE right click an empty spot on your
menu and select Customize...
Select the Command tab in the Customize dialog
Select View from the Categories list.
On the Commands list you should see
an item called Last Position.
Drag this item to a toolbar.
#Jay's answer is right on. There are also handy shortcut keys for this feature and the related Definition feature:
Last Position: Ctl + Shift + F2
Definition: Shift + F2
In one of the toolbars in the sample applications?

Shortcut for Replace button in "Find and Replace" dialog

I call up Find and Replace dialog with Ctrl+H. On F3 it finds the result but then I must hunt the Replace button using the mouse. And on every new find, it changes the screen position. Is there any way to use this dialog using only keyboard?
It will save me a few precious seconds multiplied by some very large number (I'm in the middle of heavy refactoring).
In visual studio 2015:
Ctrl+H opens the Replace dialog.
Ctrl+F opens the Find dialog.
Within that dialog:
Alt+N - Focus "Find" entry field
Alt+P - Focus "Replace with" entry field
Alt+C - Toggle Match Case
Alt+W - Toggle Whole Word
Alt+E - Toggle Regular Expressions
Alt+L - Open "Look In" dropdown list. Use Up/Down and Enter to select from this list:
Current Block
Selection
Current Document
All Open Documents
Current Project
Current Solution
Alt+R - Replace Next
Alt+A - Replace All
Esc - Dismiss dialog
For example, to replace "foo" with "bar" within the current selection:
Ctrl+H - Opens the Replace dialog, with focus on "Search Term".
Enter "foo"
Alt+P - Focus is now on "Replacement Term"
Enter "bar"
Alt+L, choose "Selection", press Enter.
Alt+W - Whole word only
Alt+R - Replace first term
Esc - Close replace dialog.
Sorry,
As microsoft there is no keyboard shortcut as Replace Next,
You can check this url
http://msdn.microsoft.com/en-us/library/da5kh0wa.aspx
You could simply copy your desired replacement text before starting to F3 through your source text, and hit Ctrl+V when you hit the next match as VS selects the match text for you.
It is a hack, but it works.
If you dock the find/replace window then it will not move with each new find.
You can then alternate with 1 finger on F3 to move to next find, while hovering the mouse over the non-moving replace button to replace what you need.
It is possible to deactivate Resharper default behavior of "Alt+R" which provides a quick access to Resharper menu in Visual Studio.
Just uncheck it in Resharpers options:
enter image description here

Resources