Closed colinmacdonald closed 8 years ago
Would it not be easier to do this instead?
var Options = {"array":[ {"identifier": ""}, {"connect_url": ""}, {"article_content": ""}, {"section_elements": ""}, {"hide_controls": ""} ]};
@jonwgeorge Not like that.
More like:
new Ouija({
identifier: 12,
connect_url: 'url',
article_content: '.article_class',
section_elements: '.section_elements',
hide_controls: true
});
@halfdan Yeah, that looks better. I suck at Javascript haha.
Also, now that you guys have added the ability to comment on images, which is a nice feature, how do I go about disabling it? No need to comment on images for me at least.
@jonwgeorge Using the section elements option: window.ouija_section_elements = 'p, ol';
. The default is: 'p, ol, :has(img)'
Ouija options are building up fast:
Should be able to set these options as an object instead of individual vars on the window.