froala / angular-froala

Angular.js bindings for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
306 stars 123 forks source link

is not set focus after tap to editor(android/ios) #167

Closed AlekseyKutsko closed 6 years ago

AlekseyKutsko commented 6 years ago

I have issue. Cordova. I use ionic(version 1). When I tap to editor focus is not set in android and ios devices.

I tried to do: 1.

.fr-box, .fr-box .fr-element {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
}

2.

$('.selector').froalaEditor({
  editorClass: 'needsclick'
});

// var myContainerEl = document.getElementsByClassName('needsclick')[0];
myContainerEl.addEventListener('touchstart', function(event) {
  event.target.classList.add('needsclick');
});

Cordova CLI: 8.0.0 Gulp version: CLI version 1.2.2 Gulp local: Local version 3.9.1 Ionic Version: 1.3.2 Ionic CLI Version: 1.7.14 Ionic App Lib Version: 0.7.0 ios-deploy version: 1.9.2 ios-sim version: 5.0.11 OS: Mac OS X El Capitan Node Version: v7.9.0 Xcode version: Xcode 9.2 Build version 9C40b

froala_editor v2.7.4

but this don't help me. Any solution?

AlekseyKutsko commented 6 years ago

Issue solved. I updated ionic lib to latest version(1.3.4) and focus set correct in android/ios.