A javascript and small html program
Budget: ₹600 – ₹1,500 INR
I want a simple and neat javascript code, that
1)tracks the highlighted content in a contenteditanle div.
2)Find the tags enclosing it before. That is, if the highlighted text is in <b> or <I> or <li> or <ol> or all of the above exactly.
3) onclick or shortcut add the exact tags around the highlighted text. If not highlighted empty appended tags with the cursor inbetween.
Should not use command exec or command query statements.
1)tracks the highlighted content in a contenteditanle div.
2)Find the tags enclosing it before. That is, if the highlighted text is in <b> or <I> or <li> or <ol> or all of the above exactly.
3) onclick or shortcut add the exact tags around the highlighted text. If not highlighted empty appended tags with the cursor inbetween.
Should not use command exec or command query statements.