该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Real WYSIWYG

描述

The Real WYSIWYG plugin turns the TinyMCE Visual Editor in to a real WYSIWYG editor.
TinyMCE allows you to import style sheets into the editor window. The Real
WYSIWYG plugin uses this ability to import your theme’s style sheet, allowing it to display
the post as it will look when published.

Release Notes

  • 0.0.2
    • Fixed bug that prevented automatic support for the Default Theme.
    • Added some more CSS for the Default theme.
  • 0.0.1
    • Added filter for inserting extra CSS.
    • Tweeked the escaping of the generated extra CSS output.
  • 0.0.0
    • Initial Release

屏幕截图

  • Editing a post (in the Vistered Little Theme) using TinyMCE and the Real WYSIWYG plugin
  • The same post as published.
  • Screenshots 1 and 2 combined at 50%. Pixel Perfect.

安装

  1. copy the ‘real-wysiwyg’ directory to your ‘wp-contents/plugins’ directory.
  2. Activate the Real WYSIWYG plugin in your plugins administration page.
  3. If your theme supports Real WYSIWYG then the editor window should now look
    the same as your posts. Otherwise, you may need to configure Real WYSIWYG via the options
    menu to include any extra stylesheets your theme may have and to include any extra css
    so that the editor body will be correctly styled.
    For instance, for the default them, the following CSS is some of what is added to the Extra CSS field:
    .mceContentBody {
    line-height:1.31em;
    text-align:justify;
    font-size:0.8em;
    margin:2.5ex auto;
    padding: 0pt;
    width:450px;
    background:transparent url(‘../../themes/default/images/kubrickbg-ltr.jpg’) repeat-y scroll center top;
    background-color:#e7e7e7;
    }

常见问题

How do I make my theme support Real WYSIWYG

If your theme uses more than onw style sheet, then you should add a filter
on real_wysiwyg_style_sheets and add the URI for you stylesheets to the
array that is passed in.
If you have stylesheets that are only for IE 6,
then you can create a filter on real_wysiwyg_style_sheets_ie and add your
IE 6 stylesheets to it’s array.
If you have inline styles that need to be applied, then create a filter on
real_wysiwyg_extra_css and add your required CSS to the string.

You will also need to update you stylesheets so that the CSS that applies
to a post also applies to an element with a class of mceContentBody. If
you don’t have it already, Firebug for Firefox is excellent for determining
what styles are applied on an element. You can use this to see what is
applied to the post and create extra rules for the mceContentBody for
anything it missed. Finally, I use screenshots of the post in the editor
and as published to compare the styles and tweek the mceContentBody style
as needed.

评价

此插件暂无评价。

贡献者及开发者

“Real WYSIWYG” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Real WYSIWYG”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志