Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello everyone, I am from Ukraine so Sorry for my English right away.
I should CKEditor 3.6.5.7608, when I add a text blockquote does not close quote as now
I needed to was this way how to
Please tell me what you need to do? Thank you so much.
Looking at your screenshots, this appears to be a CSS issue. Your theme is probably showing one background image as the opening quote and doesn't have anything for the closing quote.
This is not an issue with Wysiwyg or CKEditor but your theme.
Looking at your screenshots, this appears to be a CSS issue. Your theme is probably showing one background image as the opening quote and doesn't have anything for the closing quote.
This is not an issue with Wysiwyg or CKEditor but your theme.
possible, but the fact is that when I prescribe in code and not in the text editor <blockquote> quote ... <span> </ span> </ blockquote>
quote then closes as it should
adding <span> </ span> before </ blockqoute> solves this problem, but each time it is not a solution to add
I don't know what your CSS looks like so I can only guess, but I think I understand what the problem is.
The blockquote effect used here on Drupal.org only uses a single background image for the large opening double qoute character, like rocketeerbkw said. I suspect your theme is using the extra <span> </span> tag at the end of your blockquote to put a second background image in, for the large ending double quote character.
CKEditor does not know it needs to put that extra span tag in there, so your theme does not have anything to put the second background image on. To make CKEditor do that, you would need a plugin that would make sure the extra span is always there.
I don't know of a plugin like that, but if there is one, you could create a small Drupal module to tell Wysiwyg module that plugin is available for CKEditor, using hook_wysiwyg_plugin().
This will however always put the extra spans on all blocquotes in your content, something which may be undesirable if you one day you decide you don't need that extra span. Another solution would be to create a Drupal module implementing a text filter to do this instead. A text filter could automatically add the span tag inside all blockquotes it sees (for content using a text format with that filter enabled) during rendering, so the span would not actually need to be stored with the content in the database. The downside would be that you would not see the ending quote inside the editor because it can not use the text filter system.
CKEditor does not know it needs to put that extra span tag in there, so your theme does not have anything to put the second background image on. To make CKEditor do that, you would need a plugin that would make sure the extra span is always there.
I don't know of a plugin like that, but if there is one, you could create a small Drupal module to tell Wysiwyg module that plugin is available for CKEditor, using hook_wysiwyg_plugin().
Thank you very much, but you could not have more details to inform that I need to do.
What code is in the module should be?
I lost track of this issue, apologies for that.
I'm going to close this issue to clean up the queue.
If you still have questions about implementing hook_wysiwyg_plugin(), please re-open it.
Comments
Comment #1
rocketeerbkw CreditAttribution: rocketeerbkw commentedLooking at your screenshots, this appears to be a CSS issue. Your theme is probably showing one background image as the opening quote and doesn't have anything for the closing quote.
This is not an issue with Wysiwyg or CKEditor but your theme.
Comment #2
HarryAscent CreditAttribution: HarryAscent commentedpossible, but the fact is that when I prescribe in code and not in the text editor
<blockquote> quote ... <span> </ span> </ blockquote>
quote then closes as it should
adding
<span> </ span> before </ blockqoute>
solves this problem, but each time it is not a solution to addComment #3
TwoDI don't know what your CSS looks like so I can only guess, but I think I understand what the problem is.
The blockquote effect used here on Drupal.org only uses a single background image for the large opening double qoute character, like rocketeerbkw said. I suspect your theme is using the extra
<span> </span>
tag at the end of your blockquote to put a second background image in, for the large ending double quote character.CKEditor does not know it needs to put that extra span tag in there, so your theme does not have anything to put the second background image on. To make CKEditor do that, you would need a plugin that would make sure the extra span is always there.
I don't know of a plugin like that, but if there is one, you could create a small Drupal module to tell Wysiwyg module that plugin is available for CKEditor, using hook_wysiwyg_plugin().
This will however always put the extra spans on all blocquotes in your content, something which may be undesirable if you one day you decide you don't need that extra span. Another solution would be to create a Drupal module implementing a text filter to do this instead. A text filter could automatically add the span tag inside all blockquotes it sees (for content using a text format with that filter enabled) during rendering, so the span would not actually need to be stored with the content in the database. The downside would be that you would not see the ending quote inside the editor because it can not use the text filter system.
Comment #4
HarryAscent CreditAttribution: HarryAscent commentedThank you very much, but you could not have more details to inform that I need to do.
What code is in the module should be?
Comment #5
TwoDI lost track of this issue, apologies for that.
I'm going to close this issue to clean up the queue.
If you still have questions about implementing hook_wysiwyg_plugin(), please re-open it.