<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tinyMCE style not matching site style in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251377#M204507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you've found the JIRA ticket (&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-11999" rel="nofollow noopener noreferrer"&gt;ALF-11999&lt;/A&gt;&lt;SPAN&gt; for anyone else following this thread) &amp;amp; set up a watch - you'll be notified there once we actually fix this issue, but in the mean time, have you tried using an &lt;/SPAN&gt;&lt;EM&gt;@import&lt;/EM&gt;&lt;SPAN&gt; css statement inside TinyMCE's &lt;/SPAN&gt;&lt;EM&gt;content.css&lt;/EM&gt;&lt;SPAN&gt; on the active theme? That will pull the necessary style sheet into the TinyMCE editor's iframe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;SPAN&gt;, I suspect that a significant number of the styles in &lt;/SPAN&gt;&lt;EM&gt;presentation.css&lt;/EM&gt;&lt;SPAN&gt; may need to be modified to work within the context of of the TinyMCE iframe - for example, those prefixed with &lt;/SPAN&gt;&lt;EM&gt;.sticky-wrapper&lt;/EM&gt;&lt;SPAN&gt; won't match anything. Give it a try &amp;amp; once you've got it imported, you'll be able to have a play and modify the styles that need tweaking. This is probably best done within the &lt;/SPAN&gt;&lt;EM&gt;presentation.css&lt;/EM&gt;&lt;SPAN&gt; file by adding an additional selector to any rule that isn't correctly applied and prefix that new selector with&lt;/SPAN&gt;&lt;EM&gt; #tinymce&lt;/EM&gt;&lt;SPAN&gt; to keep the less specific selector scoped to only TinyMCE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll link the JIRA ticket to this thread, so if you wouldn't mind reporting back on how well that works, it'll help us when we come to fix that bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 09:37:31 GMT</pubDate>
    <dc:creator>davidcognite</dc:creator>
    <dc:date>2012-04-05T09:37:31Z</dc:date>
    <item>
      <title>tinyMCE style not matching site style</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251376#M204506</link>
      <description>Hi Alfresco'ers (Sharers? Explorers?),We have recently set up Alfresco 4.0.b Community in an Ubuntu/Postgres/Tomcat environment. I have also implemented a custom theme based off the red fmeTheme here http://code.google.com/p/fme-alfresco-extensions/wiki/FmeTheme. After some initial problems (the fme</description>
      <pubDate>Fri, 30 Mar 2012 00:56:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251376#M204506</guid>
      <dc:creator>chrisokelly</dc:creator>
      <dc:date>2012-03-30T00:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: tinyMCE style not matching site style</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251377#M204507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you've found the JIRA ticket (&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-11999" rel="nofollow noopener noreferrer"&gt;ALF-11999&lt;/A&gt;&lt;SPAN&gt; for anyone else following this thread) &amp;amp; set up a watch - you'll be notified there once we actually fix this issue, but in the mean time, have you tried using an &lt;/SPAN&gt;&lt;EM&gt;@import&lt;/EM&gt;&lt;SPAN&gt; css statement inside TinyMCE's &lt;/SPAN&gt;&lt;EM&gt;content.css&lt;/EM&gt;&lt;SPAN&gt; on the active theme? That will pull the necessary style sheet into the TinyMCE editor's iframe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;SPAN&gt;, I suspect that a significant number of the styles in &lt;/SPAN&gt;&lt;EM&gt;presentation.css&lt;/EM&gt;&lt;SPAN&gt; may need to be modified to work within the context of of the TinyMCE iframe - for example, those prefixed with &lt;/SPAN&gt;&lt;EM&gt;.sticky-wrapper&lt;/EM&gt;&lt;SPAN&gt; won't match anything. Give it a try &amp;amp; once you've got it imported, you'll be able to have a play and modify the styles that need tweaking. This is probably best done within the &lt;/SPAN&gt;&lt;EM&gt;presentation.css&lt;/EM&gt;&lt;SPAN&gt; file by adding an additional selector to any rule that isn't correctly applied and prefix that new selector with&lt;/SPAN&gt;&lt;EM&gt; #tinymce&lt;/EM&gt;&lt;SPAN&gt; to keep the less specific selector scoped to only TinyMCE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll link the JIRA ticket to this thread, so if you wouldn't mind reporting back on how well that works, it'll help us when we come to fix that bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 09:37:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251377#M204507</guid>
      <dc:creator>davidcognite</dc:creator>
      <dc:date>2012-04-05T09:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: tinyMCE style not matching site style</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251378#M204508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for responding, I was actually wondering with some of my testing since originally making this post whether this may be less related to stylesheets and more to this - &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=47&amp;amp;t=23632&amp;amp;start=30" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=47&amp;amp;t=23632&amp;amp;start=30&lt;/A&gt;&lt;SPAN&gt; ? I originally thought that the problem was that TinyMCE was ignoring our styles changes as they matched the stylesheet and thus needed no tags added in that context, however have since discovered that, for example with fontsize, no matter what we set our font size to with TinyMCE it remains unchanged when published.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In regards to the workaround you suggested - importing the presentation.css into TinyMCE's content.css, I only lost you when it comes to TinyMCE's content.css (I am fairly new to Alfresco's layout). In our development environment we have &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;/Source&lt;BR /&gt;-/web&lt;BR /&gt;–/themes&lt;BR /&gt;—/customTheme&lt;BR /&gt;—-/images&lt;BR /&gt;—-/yui&lt;BR /&gt;—–/assets&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Inside CustomTheme we have a presentation.css and login.css, inside /assets we have skin.css. Would TinyMCE's content.css fit somewhere in here or would we need to map a different directory structure?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 22:16:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tinymce-style-not-matching-site-style/m-p/251378#M204508</guid>
      <dc:creator>chrisokelly</dc:creator>
      <dc:date>2012-04-09T22:16:05Z</dc:date>
    </item>
  </channel>
</rss>

