partial.editor.js, getting the title out of the text with some regex