1

I'm using ACE theme which is modified for zend framework 2. I have a problem with the wysiwyg editor. In their website it doesn't mention about the name or source code etc about wysiwyg...

Whenever I press 'enter' to make a newline, i want it to put 'br' tag but it instead it encloses the text with div tags.

I tried to check the configurations, the init functions of wysiwyg, but couldn't find the way to change it.

Briefly:

This is what i must have

text<br>text2

This is what it gives

text<div>text2</div>
  • You say `In their website it doesn't mention about the name or source code etc about wysiwyg`, but a quick scan of the page you linked lists `Mindmup Wysiwyg Editor` and a quick search finds their site here -> https://mindmup.github.io/bootstrap-wysiwyg/ and the source code here -> https://github.com/mindmup/bootstrap-wysiwyg/ . None of this answers your question, but it's a start .. – Crisp Jan 27 '16 at 16:26
  • Does shift-enter do what you want? – Tim Fountain Jan 27 '16 at 21:57

1 Answers1

0

Have you checked for different browsers,

because google Chrome use div tag on key down event of textarea, but firefox doesn't do that, it simply add
tag.

for more understanding read below link :

Prevent contenteditable adding <div> on ENTER - Chrome

Community
  • 1
  • 1
Dilip Dalwadi
  • 167
  • 1
  • 9