javascript - Trying to create a hyperlinked "hashtag" when inputting text in a text box -
i'm creating website users posting text. 1 of text boxes on "posting" page tags/hashtags. user type in text box "#food" or "food", hit space bar, each of words typed hyperlinked.... after posted, displayed on post hyperlinked tag other users click on.
ie. "tags" box here on stackoverflow i'm posting question.
does know how make text box capable this?
don't use inline objects that. instead use editable div;
<div id="myinputbox" contenteditable="true"></div>
you can make input-box of block-type, i'm not sure if browsers abide rules of inserting complex markup inside tag then.
Comments
Post a Comment