When a user is copying from MS Word and pasting it in a text area, even the hidden text is getting pasted.
How to filter or avoid pasting of hidden characters in CK Editor (Version: 4.4.7)?
Browsers: Chrome and IE 11
Related
How can I view the clipboard on a mac with all formatting applied? For example, if I copy-paste a table in Excel, not only does it copy the text, but it also copies formatting (I believe it copies it as an html object to the clipboard). How would I view this? The closest I have found is the Finder Clipboard or pbcopy but that seems to just show raw text, and no actual ancillary formatting. In other words, I want to view the literal data in my clipboard, not just the text that would be pasted into a plain text edit. How could this be done?
# this data should have formatting...
$ pbpaste
2019 Q1
2018 Q1
Jodit Editor (3.4.x.x) - Kubuntu 20.04, Firefox 83, Chrome/Chromium 87
When typing text into a textarea and the end of the Jodit editor width is reached, the editor does not wrap the text. Instead it keeps adding the characters onto the end and the horiz scroll bar turn on.
Is there a particular setting to enable this? I saw the 'wraptextnodes' plugin manages this and it appears this should be enabled by default.
The online examples work correctly.
It happened to me aswell. I believe it is about formatting the input.
Are you pasting content directly into the editor? If so, the html may be interfering with jodit.
When using shift-return to add a soft return to ckeditor (version 4.5.3), and the resulting HTML is converted to PDF via wkhtmltopdf, there are "?" characters that are sometimes inserted at the start of the lines with soft returns.
Examining the HTML source, I find that there are 3 hidden characters inserted that wkhtmltopdf is converting to "?" since it doesn't know what to do with them. These characters don't show up in Notepad++ when "Show hidden characters" is turned on, but examining the file with a hex editor shows the are hex codes:
E2 80 8B
Why does ckeditor insert these hidden characters when you use a soft break, in addition to the <br /> tag? What is their purpose? And more importantly, is there a way I can disable this behavior? Or perhaps this is a bug?
UPDATE
I have duplicated the behavior using the current online ckeditor demo.
Type a few characters (like "asdf") on several lines, using shift-return to do a soft return between each line. Then click on the "Source" button to view the HTML. Select and copy an area large enough to more than fully contain the area you typed (make sure to copy a little extra below what you added). Then paste it into an online hex editor:
https://hexed.it/
You will see the same characters:
E2 80 8B
Please let me know if this is a bug. If not, what can I do to disable this behavior?
On the ckeditor bug report area, I was informed that the correct way to get "clean" HTML from ckeditor is to use:
editor.getData();
NOT what I was using:
editor.document.getBody().getHtml();
Posting here so others can easily find this, as the ckeditor documentation doesn't really help much.
when i type something in sublime 3 it has a white box appear around the text, when i out focus the sublime and get focus back, the text which is highlighted disappear.
So i have to press escape or space to turn it off before saving which is super annoying. Tried to turn off some highlight functions in sublime setting but doesn't work.
please see the example image below, thanks
p/s i dont install any plugin except package control, and it happens to every language (php, js, html, text, xml ...)
i used a vietnamese keyboard, so turn it off when the problem sold.
i think it may happen to another keyboard. thanks
I'm using Visual Studio 2008 and I split my text editor into two vertical text editors. I thought it would be useful to have a macro that re-size the active text editor to take up most of the screen but I haven't gotten very far. I get an error whenever I try to change the width oh a text editor.
DTE.ActiveWindow.Width = 800
And I'm not sure how to identify weather the active window is a text editor or not.
Anyone know what I'm doing wrong?
thanks
Check the Kind property. Should be "Document" for text editors, I suppose:
If DTE.ActiveWindow.Kind = "Document" Then
' ActiveWindow is a text editor '
End If