Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Text after bold is duplicating

#18

I am creating an instance, and using the detach options for some things to toggle it on and off.

I have found that if there is a bug when trying to BOLD text that is not wrapped in paragraph tags to start with. Anything after the text being bolded is duplicated after the whole content and wrapped in it's own paragraph tag. This plain text and the editor is initialized, it is not started.

For example, I have a text box with this:

This is text

Then a user can 'activate' the HTML Editor (with attach), and bold a piece of the text:

This <strong>is</strong> text

When the editor is now 'detached', this is put into the field:

<p>This <strong>is </strong>text</p>text

Not sure why, but kind of annoying as I have a lot of fields that use attaching and detaching so that the data entry is not cluttered. Thanks for any help in getting this resolved.

Reported by sdpsktr · February 24th, 2010 @ 04:17 AM

State: open
Milestone: 0.5
Assigned to: Lim Chee Aun Lim Chee Aun

Activity

  1. sdpsktr
    sdpsktr

    BTW, it shows in the editor just fine, but this rears when you toggle the view, or I try to access the actual form field value directly. Pulling it from obj.getContent(); works just fine.

    I was able to work around this, but still happens when a user starts toggling the view.

    February 24th, 2010 @ 06:59 AM

  2. Lim Chee Aun
    Lim Chee Aun
    • State changed from new to open
    • Tag set to paragraphise

    sdpsktr,

    MooEditable by default will try to "paragraphise" the content. You can try disable that by setting 'rootElement' option to null or 'paragraphise' option to false, or both.

    February 28th, 2010 @ 03:21 PM

  3. sdpsktr
    sdpsktr

    I do have paragraphise set to false. Should I setup a test example for you?

    March 1st, 2010 @ 02:01 AM

  4. Mete0
    Mete0

    Hi,
    I have this bug too, but only on webkit based browsers (Safari 5, Google chrome...).
    Paragraphise is turn on, but switch off this options does't help and i need this stuff.

    Reproduce bug:
    1. Type in mooEditor "testbug"
    2. Select "test" and make it bold
    3. Switch toggle or send form

    And you get something like that:

    testbug

    bug

    Any ideas? Seriously bug.

    September 9th, 2010 @ 01:21 AM

  5. Mete0
    Mete0

    This bug work in any browsers, sorry, my mistake...

    September 9th, 2010 @ 07:39 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.