User Tag List

Results 1 to 6 of 6

Thread: Rich Edit (Select text between tags)

  1. #1
    No Products Registered

    Join Date
    Apr 2009
    Location
    Sweden
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rich Edit (Select text between tags)

    Hello. Long time ago since i used this program...
    So can someone help me?

    My question is:
    How do i select the text inside src=""

    Like:
    <a href="something"><img src="somethingwithnumbersandtext.jpg"></a>

    Regards // dagge

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    There's a thread I started that had a great answer to this. I'm not on my computer or I'd paste it. I suggest searching for it. Someone shared a great example!

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Dagge, Hi Ratty,
    i remember that Post
    Here it is:
    http://community.clickteam.com/threads/79975-Richtext-Object-%28or-other-text-object%29-wildcard-parsing-Still-no-luck

    With kind regards,
    jahkri

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simple one i just whipped up.
    http://game-td.vacau.com/imgurl.mfa

    EDIT: dope! was too slow.

    Hmm, haven't used the scnitilla extension, going to checkitout now
    Wow wish i found that scintilla object earlier, alot more powerful than Rich edit.

  5. #5
    No Products Registered

    Join Date
    Apr 2009
    Location
    Sweden
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow. Thank you guys!

    One question. From macca02 example he finds " (<img src=") ". and then he finds " ( "> ) ".
    So if some of my images on my site has

    <img widht="" height="" src="">
    <img alt="" src="">

    how can i do then? Can i use Regex in the RichEdit -> Find and select text ??

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could just change it to find src=" instead of <img src=" in the first part.
    Then in the part to select the text change it to: StartIndex( "Rich Edit Object" )+Len("src""")

    My HTML is rusty, so i don't know if that will conflict with other tags?

    Reuploaded the Example with the above changes: http://game-td.vacau.com/imgurl.mfa

Similar Threads

  1. Wildcard possible with - Rich Text Object: Controls > Find > Find and Select Text ??
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd March 2013, 01:28 PM
  2. select text in edit box
    By Sumo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th November 2010, 03:09 AM
  3. Get text: Rich Edit 2.0
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th July 2009, 01:17 PM
  4. Rich text edit box
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th September 2007, 12:08 PM
  5. How do I "Set RTF text" in Rich Edit Box?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th December 2006, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •