איך לשנות את התצוגה המקדימה עם javascript?

Do you want to update just the preview or you want to also affect how a submitted post will look?