Page 1 of 1

MicroTiny can't show specific stylesheet styles

Posted: Thu Oct 27, 2016 2:24 pm
by paulbaker
I want a specific bit of CSS to be applied to the WYSIWYG window edit area of MicroTiny but that functionality doesn't seem to work.

To replicate:

My Preferences > My Account > User Prefererences tab > Verify you are set to MicroTiny WYSIWYG editor.

Layout > Design Manager > Stylesheets tab > Options, create new stylesheet, name it MicroTiny, put simply "color: red;"

Extenstions > MicroTiny WYSIWYG editor > Settings tab > Admin editors > Stylesheet for editor: MicroTiny

Site Admin > Site Maintenance > Cache and content tab > Clear cache

Content > Content Manager > edit a page

I expected to see red text in the WYSIWYG window, I actually see black text on white.

Perhaps I am misunderstanding something? ???

----------------------------------------------
Cms Version: 2.1.5
Installed Modules:
AdminSearch: 1.0.2
CMSContentManager: 1.1.1
CMSMailer: 6.2.14
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.4
LISE: 1.2.1.1
LISELISECharacters: 1.2.1.1
LISEStories: 1.2.1.1
MicroTiny: 2.0.3
ModuleManager: 2.0.4
Navigator: 1.0.3
News: 2.50.5
Search: 1.50.2
Showtime2: 3.5.3
SimpleSiteInfo: 3.1.1
UsersGuide: 2.0

Config Information:
php_memory_limit:
max_upload_size: 32000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:
phpversion: 5.6.24
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 120
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.18-471.3.1.el5.lve0.8.72 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.30
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/cthuk/public_html/storystack/tmp (0755)
tmp_cache: /home/cthuk/public_html/storystack/tmp/cache (0755)
templates_c: /home/cthuk/public_html/storystack/tmp/templates_c (0755)
modules: /home/cthuk/public_html/storystack/modules (0755)
uploads: /home/cthuk/public_html/storystack/uploads (0755)
File Creation Mask (umask): /home/cthuk/public_html/storystack/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: MicroTiny can't show specific stylesheet styles

Posted: Thu Oct 27, 2016 3:44 pm
by calguy1000
It works here.

The only difference is my stylesheet named 'MicroTiny' has this code:

* {
color: red;
}

I tested in the MicroTiny admin panel. clearing the cache was not necessary.

Re: MicroTiny can't show specific stylesheet styles

Posted: Thu Oct 27, 2016 4:32 pm
by paulbaker
Thanks Robert. I changed my stylesheet to yours and it started working.

BUT then it stopped working again and no amount of editing the stylesheet makes any difference.
edits.jpg
stylesheet.jpg
This is using Chrome but Firefox behaves the same for me.

Happy to hear any suggestions about what to check for to debug this behaviour?

???

BTW similar issues discussed by several here:
viewtopic.php?f=28&t=74514&hilit=microtiny+stylesheet
but note I am not using https.

Re: MicroTiny can't show specific stylesheet styles

Posted: Mon Nov 28, 2016 8:06 pm
by caciavar
@paulbaker, I'm also facing the exact same issue.

I've tried with both MicroTiny and TinyMCE.

When you assign a stylesheet to the module (each of the 2 aforemention modules handle that in a slightly different way, with the latter allowing for you to assign a "design") those styles show up in the testing area of the module, but not on the actual content pages where the wysiwyg editor is used.

After you view a content page and navigate back to the testing area, the styles have disappeared from the testing area as well until you clear the site cache again.

MicroTiny doesn't even display the styles in the testing area.... i've only been able to get that far with TinyMCE.

Re: MicroTiny can't show specific stylesheet styles

Posted: Tue Dec 20, 2016 8:59 am
by Mich-adg
Hi, i got the same problem. Styles are not loaded every time, sometimes they come back when i clear cache. And they offen only work in admin panel area but not when editing a page or article. It's a major bug !

Re: MicroTiny can't show specific stylesheet styles

Posted: Wed Dec 21, 2016 1:01 pm
by Mich-adg
Temporary tip to load the styles:
• clear cache
• Open Tinymce profile in admin and save
• Open a page/article and CTRL + F5 to clear cache, and then styles appears