Hello,
I added a new functionality to my editor, which adds span tags to the editor using "pastehtml".
<span class="myTitle"></span>
css:
.myTitle{
display: inline-block;
background: transparent;
background-image:url('images/off.png');
background-repeat:no-repeat;
cursor:pointer;
vertical-align: middle;
width:27px;
height:30px
}
1. How can I prevent from the user to insert data (text,images, etc) into the span tags when the cursor is inside the span tag?
2. I found out, when the cursor position is before the span tags, the element is not added to the editor.
Thanks,
I added a new functionality to my editor, which adds span tags to the editor using "pastehtml".
<span class="myTitle"></span>
css:
.myTitle{
display: inline-block;
background: transparent;
background-image:url('images/off.png');
background-repeat:no-repeat;
cursor:pointer;
vertical-align: middle;
width:27px;
height:30px
}
1. How can I prevent from the user to insert data (text,images, etc) into the span tags when the cursor is inside the span tag?
2. I found out, when the cursor position is before the span tags, the element is not added to the editor.
Thanks,