Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mfeola 117 posts 221 karma points
    Jun 12, 2012 @ 21:31
    mfeola
    0

    I typed $1 and it turned into a greater than sign

    does this happen to anyone else? it happens with multiple line text boxes, also i downloaded an updated dll from here: https://bitbucket.org/thomasedk/embedded-content-umbraco/overview

  • mfeola 117 posts 221 karma points
    Jun 12, 2012 @ 21:43
    mfeola
    0

    actually it happens in all the fields, im looking through source code now in hopes of finding a fix that won't break the site code.

  • mfeola 117 posts 221 karma points
    Jun 12, 2012 @ 23:16
    mfeola
    0

    looks like the issue has to do with the regex that replaces an existing item when you are editing it, still trying to fix the problem though but its definitely javascript related now.

  • mfeola 117 posts 221 karma points
    Jun 13, 2012 @ 00:05
    mfeola
    1

    got the fix, in line 446 of ECContentEditor.js there is a Regex:

    regex = new RegExp('<item id="' + editId + '"([^<]|<[^\/]|<\/[^i]|<\/i[^t]|<\/it[^e]|<\/ite[^m]|<\/item[^>])*<\/item>');

    which should be 

    regex = new RegExp('<item id="' + editId + '"(?:[^<]|<[^\/]|<\/[^i]|<\/i[^t]|<\/it[^e]|<\/ite[^m]|<\/item[^>])*<\/item>');
  • Donald St. Martin 83 posts 128 karma points
    Jan 09, 2013 @ 23:02
    Donald St. Martin
    0

    Thanks mfeola for posting a fix! It saved me a countless amount of time trying to track down the issue. Would be great if this was added to the source. 

Please Sign in or register to post replies

Write your reply to:

Draft