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)
capture 1

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
capture 2

but this on website
see Capture3.JPG (16.33 KB)
I have no color on the website
capture 3

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)
capture 5

but I have the color on the website
see Capture4.JPG (17.87 KB)
capture 4

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yukare’s picture

Status: Active » Closed (duplicate)

This is duplicate of #2715791: incorrect language when using CKEditor with Code Snippet plugin which i will commit a fix now.