message() identical to error() ?
message() identical to error() ?
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
This discussion has been closed.
Answers
You are absolutely right. This is an error is Editor. In the code, if you look for
this.s.fields[ name ].error( msg );
in themessage()
API method, replace theerror
withmessage
and it will work as expected.Thanks for letting me know about this - I'll have it fixed in the next release.
Regards,
Allan
thanks, applied the workaround and it fixed it...