[resolved] add formatting of new line in HTML editor? (2 posts)

  1. billseymour
    Posted 2 years ago #

    Can AddQT add formatting of a new line in the HTML editor as part of a quicktag?

    Example: I want a paragraph quicktag, opening with <p> and closing with </p> plus formatting of a new line in the HTML editor. It seems to me that, in the past when modifying quicktags.js, I used '\n'.

    But I can't seem to put anything into the closing tag of AddQT to get this formatting result. Can this be done? Thanks.


  2. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    On default filter WordPress the content and set br and p new. If you will add the p-Tag then it is important, that you deactivate the filter. But I think is not the best solution. It is better, that you add a custom tag, like span or hr for a whitspace part inside your content. This can you via AddQuicktag plugin and format the tag via css. The other way, the best part I think, is that you format the p-Tag of content with more space for the frontend.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddQuicktag
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic