New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@creaditor/input-iframe

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@creaditor/input-iframe

An isolated input using iframe but with the same events

latest
npmnpm
Version
1.0.11
Version published
Maintainers
1
Created
Source

Iframe Input - to keep text selection on blur.

Overview

this input is a lightweight, dependency free component for building text-editors without having to think about what happens to the text selection on blur.

Usage

Install the component via npm: npm i @creaditor/input-iframe.

Start

  • npm run build:watch
  • npm run serve
  • http://10.100.102.31:8000/dev

How to use.

<cdtr-input-iframe
  width="100px"
  id="input-id"
  inputStyle="color:red;font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;"
  value="hello world"
  placeholder="type something..."
></cdtr-input-iframe>

Add Listeners

input.addEventListener('blur', (e) => {
  // some code
});
input.addEventListener('focus', (e) => {
  // some code
});
input.addEventListener('submit', (e) => {
  // some code
});

Build

npm run build

Publish

npm publish

Keywords

web-components

FAQs

Package last updated on 28 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts