Samuell1 / contenteditor-plugin

Edit your content in page - plugin for OctoberCMS
http://octobercms.com/plugin/samuell-contenteditor
MIT License
39 stars 19 forks source link

Allow empty paragraphs #72

Open kosmonowt opened 6 years ago

kosmonowt commented 6 years ago

Is it possible to allow empty paragraphs or multiple line breaks in the editor? My content managers complain that they can not produce them, but they need it...

Samuell1 commented 5 years ago

I dont think its possible because of limitations of ContentTools.

cloudwales commented 5 years ago

Id be interested in this enhancement. Just added over 80+ content pages to a site and just found out by the customer that they cant add add an extra space under the paragraph.

Ill try and take a look today to see if i can fix or get a workaround...

cloudwales commented 5 years ago

Hi. I've made some tweaks to the content editor content-tools.min.js and works on my side. I've got no clue how to contribute to a working project on here so ive added a file to gist.

This will allow for line breaks (shift+enter) but wont work for empty new paragraphs... https://gist.github.com/cloudwales/8bb72daa1132ce7eb3ec4d9879cc41e2

this replaces the assets/content-tools.min.js

Samuell1 commented 5 years ago

@cloudwales Thats amazing! But do you think can we extend content-tools without updating min file? It can be overwrited later with new version of ContentTools.

cloudwales commented 5 years ago

Ill give it a shot :)