I have an Electron app and I am printing some content. I would like to be able to set the title of the print programmatically. It browsers this can usually be done by change the document.title, however, Electron doesn't seem to pick that up. Is there a different way to do it?
Related
I'm adding VoiceOver support to an app which at the moment only supports Norwegian. For most of the app VoiceOver correctly reads the text as Norwegian.
However, one page contains a webview which shows the terms and conditions (downloaded from a URL). For this page VoiceOver switches to English voice, even though this text is still in Norwegian.
I've tried to set accessibilityLanguage to "nb-NO" for both the webview and the containing viewcontroller but the text is still read as English. Do anyone know how I can make the webview be read in Norwegian?
Consider adopting the lang HTML attribute. This will trigger VoiceOver to generate speech in the appropriate language. Hat tip to Adrian Roselli for the suggestion.
Trying adding HTML lang="" attribute in your page. you can refer below url http://www.iana.org/assignments/language-subtag-registry for more specific value for lang attribute.
Hope this will help
There seem te be some subtle differences in the Implementation or configuration between WBWebView and Safari (and SFSafariViewController) that renders a part of the Website I want to display unusable.
Here is what I am trying to do:
Basically all that is needed is an "App" that just opens a specific website in fullscreen mode, so no chrome, URLs or additional navigaton buttons are present. The Website works fine on Safari on iOS (and every other (modern) browser on desktop or mobile) but the menu does not when embedded in the App.
All I did was creating a new single view Application in Xcode, drop in a WKWebView and have it load the URL. The part of the page not working is this menu component that is used throughout the site: http://tympanus.net/codrops/2013/04/19/responsive-multi-level-menu/ So basically the user has no way to navigate. While debugging the website it seems like when I push the menu button the menu does not expand like it should because the changed css classes dont get picked up correctly. If I manually toggle the css classes on the menu-element it gets displayed correctly. It makes me wonder if there are some additonal constraints related to WKWebView?
Can anyone tell me if there are any settings or configurations I can alter that allow the website in WKWebView to behave exactly the same as it would under Safari?
As far as I understand SFSafariViewController I always get the browser toolbar and navigational elements which I dont want to have in the app, so that is not an option- or is there a way to get rid of that?
Any help or pointers would be greatly appreciated :)
I'm using the FireFTP extension version 2.0.24.1. Its icon in the Firefox menu is all blurry.
The fireFTP website has a pretty icon. I'd like to replace the blurry one with the pretty one.
For now I've tried messing with files. I think the icon is stored in [profile directory]/extensions/{a7c6cf7f-112c-4500-a7ea-39801a327e5f}/chrome/icons/default/fireftp-main-window.ico. Changing its name from fireftp-main-window.ico to fireftp-main-window.ico.bak however did not change the way it is displayed. I'm thinking there either a reference somewhere I should change (did not found any in [profile directory]/extensions/{a7c6cf7f-112c-4500-a7ea-39801a327e5f}/chrome/fireftp.jar and/or force a "refresh" on the extension by Firefox.
How can I most easily change the icon?
What image formats are supported?
Once satisfied with the result, what's the best way to propose the change to the FireFTP developers?
Mozilla Firefox 39.0 on Linux Mint 17.1.
This will be difficult to explain so I won't paste any code.
I'm implementing a wysiwyg editor on my site called wysihtml5 and there are several issues when selecting the textarea/editor with the iPad. On a desktop browser, all is fine, the text can be selected, edited, pasted etc. But on the iPad multpiple issues occur:
Can't tap anywhere in the text to move the cursor there
If I manually move the cursor, all of a sudden I can't type anything anymore
Tapping outside of the texteditor doesn't bring the keyboard down
Basically I'm just hoping there's someone who has had similiar experiences with iPad cursor not behaving correctly in text input fields and what possible solutions there might be. I'm stuck and have no idea how to debug this.
Did you use touch event? iOS has a bug: you can't input in editable iframe if you are listening(or had listened) any touch event(touchstart, touchmove...), I tested this bug occurs even you listen other elements but iframe itself. yes, it's a serious bug, you can check out:
wysihtml5 issues98
Alright after having searched thr whole web for my answer, I hope to have someone to help me on this plezzzz.
I'm working with a php styleswitcher to give my website a day/night look and i'm using 2 sifr-config files to handle the color changes needed for the text to keep be readble on both backgrounds color.
(let's say I'm writing in white with a black background and vice-versa)
In theory it's working great, BUT i'm obliged to hit F5 to force the refresh of the sirf SWF on style change, otherwise my browser keeps the same font file all time, I've tried meta no-cache, different variables names, differents swf's, ...I've tried to add a ramdom number at the end of thefont.swf?... I think it could be the solution but it's not working.
Do you see a solution?
Many many thanks!
It sounds like you want to change the sIFR font when the style switches? You'll have to reapply sIFR for this to work, which I guess is what the reload does.
Look into "sIFR rollback" on how to undo the replacements, and then run the replacements again with the new Flash file. You could also try and embed two fonts in one sIFR 3 movie and use the dynamic changeCSS method to switch to the other font family.