message() identical to error() ?

message() identical to error() ?

sagimannsagimann Posts: 18Questions: 9Answers: 0
edited May 2014 in Editor

Hi all,
I am using editor 1.3.0 with DT 1.10, I call message("field", "text") on some field, and then I look at the DOM, I see that the message is added into the error div instead of the message div:

<div data-dte-e="msg-error" class="DTE_Field_Error" style="display: block;">text</div>
<div data-dte-e="msg-message" class="DTE_Field_Message"></div>
<div data-dte-e="msg-info" class="DTE_Field_Info"></div>

When I call error() instead of message() - same result.
any reason why message() behaves exactly like error()?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin
    Answer ✓

    You are absolutely right. This is an error is Editor. In the code, if you look for this.s.fields[ name ].error( msg ); in the message() API method, replace the error with message and it will work as expected.

    Thanks for letting me know about this - I'll have it fixed in the next release.

    Regards,
    Allan

  • sagimannsagimann Posts: 18Questions: 9Answers: 0

    thanks, applied the workaround and it fixed it...

This discussion has been closed.