passwordEditor.js 677 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;