I have an input format and role for rich text editing using TinyMCE and the WYSIWYG module. When the rich text editing input format is used, the 'Read More' link does not appear inline. It appears on a new line aligned left. When the default html filter is used, the 'Read More' link appears properly inline.
I noticed that when the WYSIWYG input format is used, the 'Read More' link is wrapped in a DIV, but when the default html input format is used, the 'Read More' link is wrapped in a SPAN.
I have the input format configured with 'inline images', 'url filter', and 'video filter' enabled.
Can anyone offer suggestions as to how to get the 'Read More' link to appear inline regardless of whether a user is using the WYSIWYG editor? If that is indeed the problem? I have used similar configurations in the past that didn't have this issue, so I'm not sure why it is happening now.
Comments
Comment #1
twodWysiwyg module runs no code when a node is rendered, so it's unlikely to play a major part in this problem.
I took a quick look in the source for the D6 version of Read More Link module.
It appears what you're seeing is an expected behavior if the link was set to be inline, but the module can't actually do that:
From ed_readmore.module, line 62.
Without digging a lot more, I can't say exactly why the link is placed after the teaser when a Wysiwyg editor is active, but I'd say it depends a lot on what the content looks like and what the generated teaser will be. The check whether to actually place the link inline or after the teaser happens on line 228 of ed_readmore.module. It seems to be fetching a list of elements from a variable to build the Regular Expression used in the check, so maybe there's a setting somewhere to tweak this?
Moving the issue to the Read More Link issue queue as they probably have a better answer to answer this.
Comment #2
twodTypo...
Comment #3
kpm commentedThank you for the help TwoD. I'll keep looking for that setting tweak and post when I find it.
Comment #4
choster commentedMarked #947922: Read-More link and the WYSIWYG editor as a duplicate issue.
Comment #5
moosh101 commentedHi,
I am experiencing the same issue with the CKeditor, the read more link appears beneath the teaser content and not inline. Unfortunately the read more settings do not make any difference. It would appear that this module is incompatible with text editors other than the default drupal editor, shame :-(
Comment #6
todd nienkerk commentedUpdating the issue description.
Comment #7
jdotti commentedSubscribe. I've got the same problems.
Note that It's happen after the update from 5x to 6x .
Thanks in advance and sorry for my english.
JD
Comment #8
jdotti commentedHello,
I forgot to say that in v5 everything was ok and that i ve got this problem since v6 update.
Maybe it can helping...
JD
Comment #9
topdillon commentedI have the same problem with CKEditor in Wysiwyg. So does anyone know where lies the problem? I think what this module does should be a standard feature with Drupal.
Comment #10
doomed commentedsubscribing
intend to start using the module, if the bug is fixed.
Comment #11
dervishmoose commentedI think this issue is due to the wysiwyg editor is wrapping the text in P tags. For this module do inline read more it would need to strip off the closing /p tag and replace it with the read more link and closing /p tag.
Comment #12
rboedeker commentedThe issue is due to the fact that tinymce ( and other editors ) wraps
<!--break -->with<p><!--break --></p>.If you look at
$node->content['body']['#value']you see that the node module keeps the"<p>". That is not clean HTML ...To solve the inline issue, I tested it with just removing
<p>from$node->content['body']['#value']before inserting the read more link (ed_readmore hack). It should be considered, to enable the node module to handle the situation and deliver a clean$node->content['body']['#value'].Comment #13
jvieille commentedAny solution yet?
Thanks