You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Think I may have found an issue with a combination of Pro Search and CKEditor fields.
I wanted to search for a user's full name, which is clearly structured within the HTML (as a ul element). When using CKEditor, the data wasn't returning the expected results. With Redactor it does work. So, I did some digging into the data and found that CKEditor does some "magic" which causes the HTML structure's whitespace to get munged which causes erroneous results.
This works (using Redactor)
<h2>Committee Members</h2><ul><li>Eric Lamb (2027)</li><li>Foo to the Shoo (2027)</li></ul>
-- Indexed Content --
| test entry | test entry |
| committee members eric lamb 2027 foo to the shoo 2027 | committee members eric lamb 2027 foo to the shoo 2027 | committee members eric lamb 2027 foo to the shoo 2027 |
This does NOT work (using CKEditor)
<h2>Committee Members</h2><ul><li>Eric Lamb (2027)</li><li>Foo to the Shoo (2027)</li></ul>
-- Indexed Content --
| test entry | test entry |
| committee memberseric lamb 2027 foo to the shoo 2027 | committee memberseric lamb 2027 foo to the shoo 2027 | committee memberseric lamb 2027 foo to the shoo 2027 |
Note the concatenation of eric lamb with members in the above
How To Reproduce
Steps to reproduce the behavior:
Create field with CK Editor
Edit an entry in the Channel with with HTML using a ul or an ol tag
Check the pro search index
Cry
Error Messages
None
Screenshots / Videos / Template Code
None
Environment Details:
All
Possible Solution
Impose some white space in between HTML tags
Activity