ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker + RTE, not working correctly when editing existing Channel Entries

May 11, 2012 5:26am

Subscribe [1]
  • #1 / May 11, 2012 5:26am

    DanL

    56 posts

    I’m using the new RTE to add & edit channel entries via the front-end.

    It appears to work fine when I’m adding a new channel entry, however, when I use the same template to edit an existing channel entry, the WYSIWYG screws up, and displays the raw HTML in the editor window.

    Here’s what I see when adding a new entry:

    Adding a new entry

    Here’s what I get when I open that entry for editing (in WYSIWYG view):

    Editing - WYSIWYG view

    And here’s what it looks like in Code view:

    Edting in code view

    The exact same template is used for adding new & editing existing entries.

    What’s going on?

  • #2 / May 14, 2012 10:53am

    DanL

    56 posts

    Anyone?

  • #3 / May 14, 2012 12:21pm

    Dan Decker

    7338 posts

    Hi Dan,

    First of all, let me congratulate you on a fantastic name. I totally approve.

    Second, I didn’t replicate your exact issue, but I did find some bugs.

    In order to get this exactly right, can you tell me a bit more about your situation?

    Were these exiting channel fields that you converted to RTE?

    What was the formatting for the Textareas before conversion? Were the set to None, XHTML, etc.?

    If you convert them back to textareas, what do you see in the Control Panel edit screen? In SafeCracker?

    Can I see your SafeCracker template code?

    We’ve definitely found *some* bugs, I just need your help to determine how many. Thanks!

    Cheers,

  • #4 / May 14, 2012 1:28pm

    DanL

    56 posts

    Hey Dan,

    Were these exiting channel fields that you converted to RTE?

    Yes, actually they were previously textarea fields before I updated to EE2.5 (from 2.4).

    What was the formatting for the Textareas before conversion? Were the set to None, XHTML, etc.?

    Pretty sure the field was set to XHTML.

    If you convert them back to textareas, what do you see in the Control Panel edit screen? In SafeCracker?

    If I change the field back to an XHTML textarea, I get the HTML markup in both the CP and Safecracker.

    Can I see your SafeCracker template code?

    Sure thing:

    
    
    

    (note that {field:our_people_bio} is the RTE field)

  • #5 / May 15, 2012 9:02am

    DanL

    56 posts

    Just for info, if I create a brand new channel field as an RTE, I get the same problem, so it does not appear to be related to a field’s previous “history”.

  • #6 / May 16, 2012 12:17pm

    DanL

    56 posts

    Any news on this?

    Thinking I’ll just need to cut my losses and ditch RTE in favour of WYGWAM.

  • #7 / May 16, 2012 4:59pm

    Dan Decker

    7338 posts

    Hi Dan,

    I’ve brought this up to the Dev team, since I wasn’t able to replicate exactly. They are aware of the issue and are working on it as a bug at the moment.

    Essentially, your content is getting “double encoded”, but the Control Panel compensates for this, where SafeCracker does not.

    There isn’t a fix available right now, however.

    Cheers,

  • #8 / May 17, 2012 6:11am

    DanL

    56 posts

    Ok cheers Dan.  WYGWAM it is 😊

  • #9 / May 21, 2012 5:27pm

    Dan Decker

    7338 posts

    Hi Dan,

    Thanks for you patience!

    We’ll be making improvements to RTE as time goes on. It is definitely a 1.0 product at this point!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases