I'm using Drupal 8,
In source view when I paste some plain text like this:
Hello sir. <br /> Hello sir.
And submit node form, without toggling back to rich-text mode, text above is removed.
If I toggle back in rich-text mode before submitting,
CKEditor automatically wraps my text in
p tag, like this:
<p>Hello sir.<br /> Hello sir.<br /> Hello sir.<br /> Hello sir.</p>
So is it possible to make
CKEditor wrap plain text in p without toggling back to rich-text view?
I have tried several things and failed in all of them, I have written custom
CKEditor plugin which listens to submit button click and execute this
editor.execCommand( 'source' ); but it isn't working, somehow data is submitted before I switch to rich-text mode.
Is there any solution to this?