jordandelozier / wysibb

WYSIWYG BBcode editor
http://www.wysibb.com
246 stars 86 forks source link

Console log output #100

Open Clausi opened 9 years ago

Clausi commented 9 years ago

Hey, I get a lot of output in the console.

"Create rules for transform HTML=>BB" jquery.wysibb.min.js:5:26296 11:35:06.422 "create unique selector: a[href]" jquery.wysibb.min.js:5:26296 11:35:06.423 "New rootSelector: a[href][id="wbbid_9"]" jquery.wysibb.min.js:5:26296 11:35:06.429 "Build editor" jquery.wysibb.min.js:5:26296 11:35:06.455 "WysiBB loaded" jquery.wysibb.min.js:5:26296 11:35:06.483 "Init modal" jquery.wysibb.min.js:5:26296 11:35:06.502 "initHotkeys"

And at the end it also outputs a js object.

This looks like debug output, any chance to disable it and still use the jquery.wysibb.min.js? Currently I disabled it manually in jquery.wysibb.js

chuve commented 9 years ago

You can put debug mode value in the options object, and then set it when init plugin on node.

Fen0l commented 9 years ago

How do you do that ?

chuve commented 9 years ago

Change string 79 in jquery.wysibb.js:

wbbdebug=true;

on something like this:

if (env.devMode) {
    wbbdebug = true;
} else {
    wbbdebug = false;
}

where env.devMode yours environment