ae7d5cb3dc834be7911521e0682b700e4b6efda80c38347f805a9690ca05b5e4c3d2fce347acc798eef4af891275bc10e8e2e745deac3d18c34c8a30c019a4 675 B

1234567891011121314151617181920212223242526
  1. import {empty} from './../helpers/dom/element';
  2. import TextEditor from './textEditor';
  3. /**
  4. * @private
  5. * @editor PasswordEditor
  6. * @class PasswordEditor
  7. * @dependencies TextEditor
  8. */
  9. class PasswordEditor extends TextEditor {
  10. createElements() {
  11. super.createElements();
  12. this.TEXTAREA = document.createElement('input');
  13. this.TEXTAREA.setAttribute('type', 'password');
  14. this.TEXTAREA.className = 'handsontableInput';
  15. this.textareaStyle = this.TEXTAREA.style;
  16. this.textareaStyle.width = 0;
  17. this.textareaStyle.height = 0;
  18. empty(this.TEXTAREA_PARENT);
  19. this.TEXTAREA_PARENT.appendChild(this.TEXTAREA);
  20. }
  21. }
  22. export default PasswordEditor;