Custom tags How to

Last post 07-17-2008, 1:13 PM by Adam. 9 replies.
Sort Posts: Previous Next
  •  05-20-2008, 8:41 AM 40560

    Custom tags How to

    Hi
     
    I am trying to create some custom tags. I dont know if this is possible but I want to create a tag
    <flashvideo src="wiggle.flv"></flashvideo>
     
    I have edited the tag.config file and added
    <add pattern="flashvideo" tab="flashvideo" text="[[Insertflashvideo]]" control="Tag_FlashVideo.ascx" />
    and have created the ascx file.
     
    When i type the flashvideo tag into the editor i was hoping it would recognise this and allow me to double click it or select properties for it. But it doesnt. Do i need to do anything else? Is this even possible?
     
    I changed the pattern to Embed to test the theory and the editor recognised the embed tag and brought up this dialog.
     
    So
    1. Is this possible?
     
    2. If it is what am i doing wrong?
     
    Thanks
     
  •  05-28-2008, 5:41 AM 40832 in reply to 40560

    Re: Custom tags How to

    Hi
     
    I guess your busy what with the new release and updating your website and all........
     
    But any hints on whether this is possible would be great...
     
    Cheers
  •  05-30-2008, 9:49 AM 40937 in reply to 40560

    Re: Custom tags How to

    Have you tried creating a custom script which pastes in the tag.  You can use the following to paste custom tags into the designer.
     
     
    document.getElementById('CE_Editor1_ID').ExecCommand('PasteHTML',false,'<flashvideo src="wiggle.flv"></flashvideo>');
     
     
    Furthermore, if you get a HTMLObjectElement (el_tag below) from inside the designer then you could use
     
    CuteEditor_GetEditor(el_tag).ExecCommand('PasteHTML',false,'<flashvideo src="wiggle.flv"></flashvideo>');
     
    Hope this helps. Mark
  •  05-30-2008, 9:56 AM 40939 in reply to 40937

    Re: Custom tags How to

    Hi
     
    Thanks for the suggestion, this bit does indeed work fine, but my problem is that I would like cuteeditor to recognise my new tag and display the relevant dialog box for it so that people can change the parameters and save it again.
     
    So if someone was to right click on the new tag and select properties this would goto the flashvideo dialog.
    As i mentioned before i tried editing the tag.config file but this didnt seem to want to kick up my new dialog.
     
    So if you have any idea on this bit that would be great
     
    Cheers
    Andy
     
  •  05-30-2008, 11:24 AM 40941 in reply to 40939

    Re: Custom tags How to

    I see.  Sorry I have not tried anything like that yet.
  •  06-02-2008, 10:36 PM 41012 in reply to 40560

    Re: Custom tags How to

    Hi:
     
    The problem is that the Editor use browser's editing service , and the browser do not understand your <flashvideo> tag and would not display it .
     
    And the CSS is not able to affect the unknown tag too.
     
    So the Editor6.x would not support selecting the unknown tag now.
     
    By the way ,
    We are considering new rendering method of the CuteEditor7 and it would support the custom tags.
     
    Regards , Terry .
  •  06-03-2008, 3:59 AM 41023 in reply to 41012

    Re: Custom tags How to

    Hi

    OK, i wasnt worried about css on the tag as I am replacing the tag during a publish.

    So in summary I can create and customise a popup page for any existing html tag, but cannot add a new one.

    Thanks for replying

     

  •  07-16-2008, 11:10 AM 42265 in reply to 40560

    Re: Custom tags How to

    AndyFel,
     
    Flv files are supported in version 6.1.1 now.
     
    Now you can Embed FLV Flash Videos in your sites easily.
     
    Demo:
     
     
    Download:
     

    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

  •  07-17-2008, 4:08 AM 42287 in reply to 42265

    Re: Custom tags How to

    Thats cool.
     
    1. question tho.
     
    What is the licence for the flv player?
    I say this because the editor is used in a CMS which publishes pages to sites which are completely separate to the CMS site. I can easily copy the flashplayer and change the path when publishing pages, but am i allowed to do this freely with no worries about licencing?
     
    1. suggestion.
    What would be really cool is that when you right properties to edit the video settings is that instead of getting the object window it showed the flash insert window with the video currently selected. Maybe you could check the object then depending on which it is either show the flash window or the object window.
     
    Also any chance of knowing what else has been added in this version? Maybe a version document somewhere that lists whats been added/fixed by release date, cos i know you are not keen on changing version numbers.
     
    So if you can let me know about the FLV licencing that would be great.
  •  07-17-2008, 1:13 PM 42294 in reply to 42287

    Re: Custom tags How to

    Andy,
     
    Please download it again. A minor bug with version 6.1.1 is fixed.
     
    Demo:
     
     
    1. License issue.
     
     
    If you have concern about license, please check: http://www.google.com/search?q=googleplayer.swf
     
    2.
     
    Change log:
     

    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