suyati / line-control

A Light Weight HTML5 Text Editor designed as a JQuery Plugin
Other
124 stars 90 forks source link

Required Validation #99

Open fazilatsuleman opened 6 years ago

fazilatsuleman commented 6 years ago

How to Validate it... that user must fill something in Editor.

nmohanan commented 6 years ago

You can use a Jquery validation.

On Mon, Apr 9, 2018 at 1:46 PM, fazilatsuleman notifications@github.com wrote:

How to Validate it... that user must fill something in Editor.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/suyati/line-control/issues/99, or mute the thread https://github.com/notifications/unsubscribe-auth/AD_FuCDj-RkKJ-JPhskk65ul2iCV4502ks5tmxj2gaJpZM4TMH5r .

--

Disclaimer: The information in this message may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete the message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Any information in this message that does not relate to official business shall be understood to be neither given nor endorsed by Suyati Technologies Private Limited. Although the company has taken reasonable precaution to ensure no viruses are present in this email, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

P Please consider the environment before printing this e-mail -- SAVE PAPER! SAVE THE PLANET!!

fazilatsuleman commented 6 years ago

can u plz explain how?

nmohanan commented 6 years ago

use this link

https://stackoverflow.com/questions/33915655/textbox-validation-on-button-click/33916116

On Mon, Apr 9, 2018 at 1:49 PM, fazilatsuleman notifications@github.com wrote:

can u plz explain how?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/suyati/line-control/issues/99#issuecomment-379672567, or mute the thread https://github.com/notifications/unsubscribe-auth/AD_FuGPOsnTUZwUUETAFueyj6pK4iSNLks5tmxmvgaJpZM4TMH5r .

--

Disclaimer: The information in this message may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete the message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Any information in this message that does not relate to official business shall be understood to be neither given nor endorsed by Suyati Technologies Private Limited. Although the company has taken reasonable precaution to ensure no viruses are present in this email, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

P Please consider the environment before printing this e-mail -- SAVE PAPER! SAVE THE PLANET!!

fazilatsuleman commented 6 years ago

I am using jQuery Steps Right now... and it has its default validation... if i put required attribute on input field or select or any thing... jQuery Steps Plugin validate it.... but not Validate Editor.... because when see in browser textarea tags hides and a div displays in which user write text....

In my HTML file

External files: Editor.js and Editor.css file as from this link

fazilatsuleman commented 6 years ago

screenshot_1

xOneca commented 6 years ago

The textarea is not updated automatically when you change something in the editor, you have to setup a callback to do so.