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,
when I generate code balise for this css with the code snipet
#name
{background: #FFFFFF;
text-align: center;
}
see Capture.JPG (36.99 KB)
it produce this in CKEditor
<pre>
<code class="language-css">#name
{background: #FFFFFF;
text-align: center;
}</ code></pre>
see Capture2.JPG (50.88 KB)
I have color in the CKEditor
but this on website
see Capture3.JPG (16.33 KB)
I have no color on the website
but now if I modify the source code in CKEditor into that:
<pre>
<css>#name
{background: #FFFFFF;
text-align: center;
}</css></pre>
I have no color on CKEditor
see Capture5.JPG (16.33 KB)
but I have the color on the website
see Capture4.JPG (17.87 KB)
Comment | File | Size | Author |
---|---|---|---|
Capture5.JPG | 49.94 KB | shark-oxi | |
Capture4.JPG | 17.87 KB | shark-oxi | |
Capture3.JPG | 16.33 KB | shark-oxi | |
Capture2.JPG | 50.88 KB | shark-oxi | |
Capture.JPG | 36.99 KB | shark-oxi |
Comments
Comment #1
yukare CreditAttribution: yukare commentedThis is duplicate of #2715791: incorrect language when using CKEditor with Code Snippet plugin which i will commit a fix now.