Fix: Determine valid actions for Wysiwyg.wysiwyg.js inclusion

Closes #554, #555

Signed-off-by: Rachman Chavik <rchavik@xintesa.com>