• inogo

    (@inogo)


    Hiya

    Im trying to to make fee play nice with a the rich text widget plugin. Im having a hard time debuggin my problem, althoug I feel like its a simple fix.

    I’ve added some rich text widgets to my page from the backend.
    When I doubleclick in the front end to edit and the editor appears – it displays fine.
    When I save in fee, the linebreaks are not displayed.
    When I doubleclick to edit again, the linebreaks are there.
    I click save and they are not displayed.
    When I edit the widget in the backend after editing in fee, the linebreaks are removed.

    Any idea how to fix it? The widget uses TinyMce if that has a saying. But fee works fine for me on regular page content wich is also added via TinyMce.

Viewing 1 replies (of 1 total)
  • Thread Starter inogo

    (@inogo)

    Hmm, I think I’ve fixed that paticular problem by removing the following code from editor.dev.js:

    // Remove <p> and <br />
    content = content.replace(/\s*<p>/gi, '');
    content = content.replace(/\s*<\/p>\s*/gi, '\n\n');
    content = content.replace(/\n[\s\u00a0]+\n/g, '\n\n');
    content = content.replace(/\s*<br ?\/?>\s*/gi, '\n');

    Now I wonder what other parts I broke by doing that?! 😛 Diddnt find any wierdness yet.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Front-end Editor] Linebreak problem with rich text widget’ is closed to new replies.