Custom Tags

Last post 12-15-2005, 1:09 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-09-2005, 10:52 AM 12442

    Custom Tags

    Hi,
     
    I have created custom functionality to display a dialog allowing the user to enter a title and then surround the selected text with <acronym title="user entered value"></acronym> tags.  This is fine as a one way process, however, how can I make it so that when the user selects the text, right-clicks and selects Tags-Acronym-Properties my custom dialog is displayed with the existing 'user entered title'?  I appreciate that I can modify the tag.config file to create an entry for the acronym tag that points at a custom tag ascx, however, if I do that then what javascript function do I need to create in the ascx so that when the user clicks the OK button in the host dialog, the title attribute of the tag in the editor gets updated appropriately?
     
    A working code example would be great.
     
    Kind Regards
     
    Andy
  •  12-15-2005, 1:09 AM 13918 in reply to 12442

    Re: Custom Tags

    Andy,

    It's not necessary to create a dialog for acronym.
     
    You can edit the title of the acronym with the following method:
     
    1. Put the cursor on acronym tag, Right-click
     
    2. In the context menu, select Tags-> ACRONYM. You can edit the title in the open dialog.
     
    Hope it helps.
    If you do need create a new tag dialog for ACRONYM, please let me know.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML