Closed (fixed)
Project:
Editor Notes
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Feb 2018 at 12:45 UTC
Updated:
2 Mar 2019 at 12:22 UTC
Jump to comment: Most recent
I think line breaks should be shown on the notes table. To achive this feature is as easy as applying the nl2br to the note:
diff --git a/sites/all/modules/editor_note/editor_note.module b/sites/all/modules/editor_note/editor_note.module
index e0d55e2..e3689da 100644
--- a/sites/all/modules/editor_note/editor_note.module
+++ b/sites/all/modules/editor_note/editor_note.module
@@ -1143,7 +1143,7 @@
$rows[$counter] = array(
'data' => array(
'note' => array(
- 'data' => filter_xss_admin($item->note),
+ 'data' => nl2br(filter_xss_admin($item->note)),
'class' => array('note'),
),
'author' => array(
Comments
Comment #2
Rostislav Sergeenkov commentedWork is in progress: it will be implemented as rich text editor support.
Comment #3
Rostislav Sergeenkov commentedDone. Feature request is implemented. If admin user selects "plain text" text format in field settings - line breaks will be visible.
Comment #4
Rostislav Sergeenkov commentedIt is a part of 7.x-1.6 version. Make sure to apply db updates.
Comment #5
nikolas.tatianenko commentedComment #6
nikolas.tatianenko commented