Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with FORM on onlyBBmode=true #208

Open
Mijsoot opened this issue Dec 12, 2022 · 0 comments
Open

Bug with FORM on onlyBBmode=true #208

Mijsoot opened this issue Dec 12, 2022 · 0 comments

Comments

@Mijsoot
Copy link

Mijsoot commented Dec 12, 2022

Hi,
Thank you very much for your script !
I think there's a litlle issue where on FORMS when 'onlyBBmode' is on.
When we submit the form we have :

Uncaught TypeError: this.$body is undefined
jQuery 18
/Test_wisyBB.html:33
jquery.wysibb.js:2351:5

$body does not exist.
I transformed it like this :

	sync: function() {
		if (this.options.bbmode) {
			this.$body.html(this.getHTML(this.txtArea.value,true));
		}else{
			this.$txtArea.attr("wbbsync",1).val(this.getBBCode());
		}
	}

TO :
sync: function() {
if (this.options.bbmode && !this.options.onlyBBmode) {
this.$body.html(this.getHTML(this.txtArea.value,true));
}else{
this.$txtArea.attr("wbbsync",1).val(this.getBBCode());
}
}

I don't know it's the right way but it work for me

Best wihshes

Thierry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant