Skip to Content

WordQuest Alliance

WordQuest Alliance

starward solutions
  • Solutions
    • Priority Support
    • Secondary Support
    • Non Priority Support
    • Plugin Support
    • Theme Support
    • Development
  • New Quest
  • Plugins
    • AutoSave Net
    • Content Sidebars
    • ForceField
    • PDF Replicator
    • PDF Shuttle
    • Visitor Vortex
    • WP AutoMedic
    • WP BugBot
    • WP Infinity Responder
  • Resources
  • Contribute
Show Menu Hide Menu
Show SubBar Hide SubBar
[+] SubBar [-] SubBar

Latest Quests

  • Markdown Formatting Test asked by majick, 9 years ago
  • Style the Q&A Editor input asked by majick, 10 years ago

New Quest

Start New Quest
New? Join Us Here.

Style the Q&A Editor input
Posted on January 8, 2016 by majick.

Solution Quests › Cat: Meta › SubCat: Solutions Forum › Style the Q&A Editor input

1
Vote Up
Vote Down
Admiralmajick Staff asked 10 years ago


This new question input is in black on white, unfortunately it is an iframe. So styling it white on black to match the site could be a little tricky. (This is also the first test post for the WordQuest Q&A by the way. Yay! 🙂

Tags: dwqa, editor, tinymce

majick
Staff replied 9 years ago

comments incompatible with nospamnx plugin..?

majick
Staff replied 9 years ago

correct. after much headscratching that is the case here. dang.

majick
Staff replied 9 years ago

testing wp-spamfree instead

0 Answers
1
Vote Up
Vote Down
majick Staff answered 9 years ago

So the answer is to copy the CSS file from /wp-content/plugins/dw-question-answer/assets/css/tinymce.css to /wp-content/themes/theme-slug/css/tinymce.css and add a CSS rule to it.
eg. body#tinymce{background-color: #333; color: #EEE; font-size:14px;}
…and then use the dwqa_editor_style filter in theme functions.php to point to it, eg.

add_filter('dwqa_editor_style','dwqa_custom_tinymce_css'); 
function dwqa_custom_tinymce_css() {return get_stylesheet_directory_uri().'/css/tinymce.css';}
majick
Staff replied 9 years ago

although this was correct, it may not be necessary anymore as the editor is now a textarea not an iframe.

majick
Staff replied 9 years ago

nope it’s still correct, only the visual editor is in an iframe though

majick
Staff replied 9 years ago

it no longer matters as with D&W Pro the Markdown CSS is different yet again.

Please login or Register to submit your answer




Categories: dwqa, editor, tinymce, Solutions Forum
WordQuest
Plugins

Solution
Quests

WP Medic
Repair Tech

BioShip Theme
Framework

Plugin Review
Directory

WordQuest Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.