#18 open
sdpsktr

Text after bold is duplicating

Reported by sdpsktr | February 24th, 2010 @ 04:17 AM | in 0.5

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.

Comments and changes to this ticket

  • sdpsktr

    sdpsktr February 24th, 2010 @ 06:59 AM

    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.

  • Lim Chee Aun

    Lim Chee Aun February 28th, 2010 @ 03:21 PM

    • 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.

  • sdpsktr

    sdpsktr March 1st, 2010 @ 02:01 AM

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

  • Mete0

    Mete0 September 9th, 2010 @ 01:21 AM

    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.

  • Mete0

    Mete0 September 9th, 2010 @ 07:39 PM

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A simple web-based WYSIWYG editor, written in Mootools.

People watching this ticket

Pages