WordPress.org

Ready to get started?Download WordPress

Forums

TinyMCE Advanced
Styles dropdown has many bogus entries (8 posts)

  1. pmorch
    Member
    Posted 2 years ago #

    I setup my editor-style.css, and the single style I setup in there makes it to the "Styles" dropdown list.

    Here is what it looks like:
    http://tinypic.com/r/2yls8av/7

    As you can see, 'code' style makes it to the list, but there are many more styles in there that I don't care about. Is there any way to remove all these weird styles, or at least make them appear below my own defined ones?

    E.g. wp-oembed, which is only found in
    /var/www/wp-includes/js/tinymce/plugins/wordpress/css/content.css
    as

    img.wp-oembed {
    border: 1px dashed #888;
    background: #f7f5f2 url("../img/embedded.png") no-repeat scroll center center;
    width: 300px;
    height: 250px;
    }

    Why is that on the style list? It is quite annoying to have to scroll past junk entries to find the ones what I'm looking for.

    Actually, the only reason I've installed TinyMCE Advanced is to setup inline tags in visual mode. Is there a simpler way to achieve that?

    http://wordpress.org/extend/plugins/tinymce-advanced/

  2. pmorch
    Member
    Posted 2 years ago #

    I tried to write:

    Actually, the only reason I've installed TinyMCE Advanced is to setup inline tags in visual mode. Is there a simpler way to achieve that?

  3. pmorch
    Member
    Posted 2 years ago #

    Aaarrrrhhh. That was supposed to be:

    Actually, the only reason I've installed TinyMCE Advanced is to setup inline (start-tag)code(end-tag) tags in visual mode. Is there a simpler way to achieve that?

    Using the one-char less-than doesn't work. Using a ambersand-lt-semicolon doesn't either. :-( Sorry for the noise.

  4. Andrew Ozz
    WordPress Dev
    Plugin Author

    Posted 2 years ago #

    There is an option to remove all style declarations from there. The other option is to set that list manually, see this plugin: http://wordpress.org/extend/plugins/advanced-tinymce-configuration/

  5. pmorch
    Member
    Posted 2 years ago #

    There is an option to remove all style declarations from there.

    I'm sorry I don't see that anywhere. Where is that?

    But "Advanced TinyMCE Config" works: Setting theme_advanced_styles to code=code enables me to have just that one style listed. So, to have inline code tags, using TinyMCE, I need two plugins: "Advanced TinyMCE Config" and "TinyMCE Advanced", and I need to click on style/Code. Wow.

    This widget I'm typing in here seems to allow me to do code style tags simply by using backticks. But no wysiwyg.

  6. Bughunter
    Member
    Posted 2 years ago #

    OK, your plugin is nice, do not get me wrong, however I can find no way integrating TinyMCE Editor with he div tags - on editing div tags are multiplied, so that content is hidden that should not be hidden, generally the visual editor behaves like crazy, adds tags where I do not need them, generally it just fux up the code.

    So atm my conclusion with this: if you use it, never ever touch a page created with multiple collapsable areas with the visual editor, because everything will just be destroyed.

    If anybody can push me to a direction how to perform clean adding of divs and still be able to use TinyMCE, please show me how. I see that there are many plugins that try to fix, but the visual editor still is a PITA if you need control over your html - missing Dreamweaver at this point :)

  7. Bughunter
    Member
    Posted 2 years ago #

    oups, wrong post, should go to "adjustly collapsable" plugin support page, but the TinyMCE problems apply to many other things. Just a pain.

  8. Andrew Ozz
    WordPress Dev
    Plugin Author

    Posted 1 year ago #

    @Bughunter you can try changing some of the TinyMCE settings like "force root block" http://www.tinymce.com/wiki.php/Configuration. However test it thoroughly as it would change how wpautop works too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic