Utilizing TinyMCE for my users to generate their own web pages is my current project. My main objective is to ensure that whatever content users type into the editor appears exactly as it does when published on the page. I am close to achieving this, however, TinyMCE automatically inserts a
if a user includes two spaces between their sentences. This causes issues because in the editor, the
collapses at the beginning of a line, aligning every line against the left side of the editor. When the page is published, it results in unnecessary spacing at the start of lines within 'p' tags. Removing the
entirely would solve the issue, but then the content would look different between the editor and the final page.
Is there a solution available to collapse a
at the beginning of lines specifically within a P
tag? Alternatively, can TinyMCE be formatted differently to ensure consistency in appearance between the editor and the final page? Any assistance or insights on this matter are greatly appreciated!