separate the js from chained and add default value to editor::textarea