Posts

Showing posts from January 16, 2019

Sharing KeyPair between my apps with one signature without interaction with user (SSO extension)

Image
0 I have several apps of one company. for SSO issue I need same set of KeyPair ( include private key) in each apps. In case of IOS KeyChain gives possibility to share keys between all apps of one certificate without user participation. But in case of android we have to install this KeyChain in way : BufferedInputStream bis = new BufferedInputStream(getAssets().open( PKCS12_FILENAME)); byte keychain = new byte[bis.available()]; bis.read(keychain); Intent installIntent = KeyChain.createInstallIntent(); installIntent.putExtra(KeyChain.EXTRA_PKCS12, keychain); installIntent.putExtra(KeyChain.EXTRA_NAME, DEFAULT_ALIAS); startActivityForResult(installIntent, INSTALL_KEYCHAIN_CODE); System app uses InstallIntent and interact with user to ask pass

TinyMCE: Programmatically select word at caret position

Image
0 How can I modify the current selection from tinyMCE 4 so that it can be extended to the current word's boundary? Say the caret is at the position represented below. How can I force tinyMCE to select the 'test' word? This is a t|est I suspect that may to use the browser's Range object, but I'm not sure how to do this My end goal is that when I trigger a custom action from a button, it applies to either the selection (if there is one), or to the word containing the caret position. Basically, same behaviour at when you click the Bold button javascript tinymce share | improve this question asked Nov 22 '18 at 9:31