I recently built a website using ASP.NET, and I have a feature where a small tooltip appears on the right side of a text box when the user focuses on it. To achieve this, I am using the ajaxToolkit:PopupControlExtender in my code.
<asp:TextBox ID="txtTest" runat="server" Width="100%" TextMode="MultiLine" Rows="5" AutoComplete="off" ClientIDMode="Static" MaxLength="6000" class="tinymce"></asp:TextBox><br />
<ajaxToolkit:PopupControlExtender runat="server" TargetControlID="txtTest" PopupControlID="tipCity" Position="Right"></ajaxToolkit:PopupControlExtender>
Everything was working smoothly until I integrated a text editor called tinymce with the textbox. After applying tinymce, the PopupControlExtender stopped displaying the tooltip message.
Below is the code snippet I used to include tinymce in my project.
<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
resize: true,
mode: "specific_textareas",
editor_selector: "tinymce",
encoding: "xml",
theme: "modern",
plugins: [
"advlist lists link preview",
"searchreplace",
"directionality"
],
toolbar1: "bold italic underline | bullist numlist outdent indent | link | preview",
menubar: false,
statusbar: true,
setup: function (editor) {
editor.on('SaveContent', function (ed) {
ed.content = ed.content.replace(/'/g, "&apos");
});
}
});
Can anyone help me solve this issue?