create a function that adds the component options as inline data attributes

mostly used for upcomign Aesop Story Editor
add options as data atts to all components if logged in