Tinymce not fully disabled in chrome - tinymce

I want to make a tinymce box disabled which I sort of manage but in chrome the content still is editable to a limited extent. I will explain below:
I first initialize the editor, then I disabled the editor if another parameter is true. I disable the editor with this command:
tinyMCE.get('taClientInformationNotebook').getBody().setAttribute('contenteditable', false);
This disabled the editor however in chrome, if I mark some text in the editor, and press any key on the keyboard the text gets replaced with the pressed character. However it is only possible to press a key once, any further input will be ignored.
So you could say that in chrome the tinymce box is disabled fully but allows for one character to be input. Very strange..
No problems in IE.
How to disable fully in chrome? I've also tried disabling the editor with other commands like "myeditor.setMode('readonly')" and "editor.settings.readOnly=true" but with the same results.

Related

Disable ESC key to scroll viewport in IDE editor

I'm using NetBeans 12.1 on Windows 10 with no plugins or other special setup. When editing any type of text file, pressing the escape key switches to a mode where the cursor keys scroll the viewport instead of moving the cursor. (In many editors, including NetBeans itself, this is typically done by Ctrl-cursor). Pressing escape again leaves that mode and returns to normal.
I often need to press escape to dismiss some window and frequently enter this mode by mistake. I then press the cursor keys to move the cursor but move the viewport instead.
I looked through key bindings to disable the binding, but couldn't find anything. How can I make NetBeans simply ignore the escape key in normal editing mode?

Mobile keyboard not selecting when opening input filed in unity

I am trying to select the text of my input field in unity, when clicking on it. It works in the editor, but none of selecting methods work on android devices.
The keyboard on android will only open itself by default on the following GUI elements: GUI.TextField GUI.TextArea and GUI.PasswordField. Make sure you are using one of these types for your inputfield. Also make sure "hide mobile input" is unchecked.
Alternatively you can make a call to open the onscreen keyboard yourself using TouchScreenKeyboard.Open(). Mind that if you open the touchscreen keyboard yourself it will not automatically populate the field field and you'll have to call to TouchScreenKeyboard.text to acces what the user is typing. Eg. myInputfield.text = myTouchScreenKeyboard.text to the set the text in myInputField
for all touchscreenkeyboard functionality see the docs here and here

Do not show user input in console autocomplete

Recently, I have noticed that Google Chrome's JavaScript console autocompletes previously inputted commands. For example:
I want to remove this feature because the autocomplete displays variables that may not exist. Is there a way to remove this feature?
Yes. A lot of people found it annoying, so they added a setting to disable it.
First, enter the DevTools settings from the menu button in the top right corner.
Then, in the "General" section, disable "Autocomplete from history".

Using forms with Chrome console open

When I have the JavaScript console open in Chrome, I am often unable to use forms, fill in inputs, or click buttons in the browser because Chrome is highlighting HTML elements for me.
Sometimes, it stops, but I don't know what I am doing to make it stop.
Is there a keyboard shortcut or something to make Chrome not highlight HTML elements and let me use the form on the page with the console open?
This irritation can be avoided by using a different keyboard shortcut. cmd+shift+c makes chrome inspect elements on the page, even after you switch to the Javascript console. cmd+option+j opens the console and lets you go on behaving like a user.

how to enable copy from a disabled TextBox in IE with GWT?

I'd like to have a disabled TextBox that the users cannot edit, but still copy from. I've tried both setReadOnly(true) and setEnabled(false), separately. Firefox seems to work as desired; the textbox is disabled but users can still copy the value to the clipboard. IE the disabled textbox has a greyed-out background and you can't copy to the clipboard.
Try using HtmlPanel, HTML widget or something else for just wrapping the text since you are marking it as read only, and just give a style to it in order to it looks like a TextBox.