Fix get resource method in WYSIWYG adapter