We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17895
    • 209 Posts
    Quote from: Leftblank at Dec 31, 2006, 05:55 AM

    Quote from: madmage at Dec 30, 2006, 01:49 PM

    Hi all... what is the right way to change the TinyMCE settings?
    The easier way is to edit the plug-in code in the manager, adding settings in the init call of TinyMCE. This will be eventually overwritten by upgrades.
    I don’t think theres a better way to edit the settings right now, sadly

    And... another question: I see that the html code generated by the plug-in script are full of {$_lang[’stuff’];} or {$someVariable} ... so, what is this syntax? {$variable} seems to me to be not documented, is it?
    Apparently the TinyMCE files aren’t complete, tags like abbr (which do have images) seem to miss the correct language for title and other attributes, hopefully this will be fixed soon with a new version of TinyMCE, but I can’t assure you that, only the devs can wink

    are you saying that {$_lang[’stuff’];} in the TinyMCE code doesn’t work? or does it uses a parser to translate it?
      Daniele "MadMage" Calisi
      • 16885
      • 255 Posts
      Quote from: madmage at Dec 31, 2006, 11:21 AM

      are you saying that {$_lang[’stuff’];} in the TinyMCE code doesn’t work? or does it uses a parser to translate it?
      I *think* those $_lang things are in the TinyMCE files somewhere indeed, most likely because of the multi language support; the ones for tags like abbr, code and pre might be missing from it.
        • 157
        • 17 Posts
        Quote from: gfroyle at Dec 19, 2006, 09:21 PM

        By default, if I apply a style (from the styles list) in TinyMCE, then it creates a <span class="blah">....</span>.

        How can I create a <div class="blah"> .. </div> ? (ie without going to the HTML source..)

        Cheers

        Gordon

        I’m running into the same problem. I’m wanting to use div tags instead of span tags for some of my elements. I select the text and click on the style and it keeps putting in span tags. In my css it is div.class and it still puts span and it doesn’t format as there isn’t a span class for it. Thanks
          • 4018
          • 1,131 Posts
          Quote from: 789 at Jan 03, 2007, 05:46 PM

          Quote from: gfroyle at Dec 19, 2006, 09:21 PM

          By default, if I apply a style (from the styles list) in TinyMCE, then it creates a <span class="blah">....</span>.

          How can I create a <div class="blah"> .. </div> ? (ie without going to the HTML source..)

          Cheers

          Gordon

          I’m running into the same problem. I’m wanting to use div tags instead of span tags for some of my elements. I select the text and click on the style and it keeps putting in span tags. In my css it is div.class and it still puts span and it doesn’t format as there isn’t a span class for it. Thanks

          You can insert a DIV using the Layer plugin (http://tinymce.moxiecode.com/tinymce/docs/plugin_layer.html). With the Layer plugin enabled, you should see a Insert New Layer button. From what I can tell, it’ll take some getting used. One thing I noticed is that it likes to insert a fixed positioned DIV with a styles attribute as part of the DIV. You can select the DIV and toggle it to not be fixed with another button that is part of the Layer plugin. From there, you should be able to select the DIV and then select a style to be applied to the DIV respectively. smiley

          Hope this helps! smiley

          Jeff
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 157
            • 17 Posts
            Thanks. I’ll give it a try. I’m also having a problem with not having a scrollbar and having to page down to see more of the page I’m writing. It makes the whole screen scroll at the same time. And many times when I paste, delete, click a photol, etc.. it jumps back to the top of the page and sometimes it doesn’t even make the change I was trying. I’m using firefox and it does it for tiny and xinha. I’m making this for a guy and I need the divs to work right, and get the scrolling thing working so he doesn’t get as frustrated as I am with it jumping around.
            Thanks
              • 157
              • 17 Posts
              I tried it, not working like I’m wanting. I just want it to put div tags instead of span tags. I was looking at the code trying to figure out if I could just replace where it inserts span to put div. I’m not sure where exactly i’d do that though.
                • 157
                • 17 Posts
                Why isn’t there a scroll bar on the editor? This page jumping has me ready to throw my computer out the door and bash my head against something hard. I’m getting frustrated. I’ve done searches for this stuff but all the issues listed were problems caused by plugins, which i don’t have, or with IE, which I’m not using. I’m using FF.
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Have you turned on dynamic sizing in the Plugin configuration page? You can then dynamically size it to whatever size you’d like. If it’s not working the way you want it to otherwise, you’re more than encouraged to write one that does!
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 8619
                    • 229 Posts
                    New question here:

                    I am using the NewsEditor snippet and want to use a friendly editor for my users to post with. The problem that I am having is that when they enter information into the current post and submit it, the paragraphs, etc. are all in one....there is no line breaks, carraige returns, etc.

                    How can I get TinyMCE to work with the NewsEditor snippet in place of the generic ’Content’ box that it has now?

                    Thanks!
                      • 4018
                      • 1,131 Posts
                      Quote from: 789 at Jan 05, 2007, 09:04 AM

                      Why isn’t there a scroll bar on the editor? This page jumping has me ready to throw my computer out the door and bash my head against something hard. I’m getting frustrated. I’ve done searches for this stuff but all the issues listed were problems caused by plugins, which i don’t have, or with IE, which I’m not using. I’m using FF.

                      I’m not sure what you mean with the scroll bar not showing up. Does this happen when you have a layer (DIV) inserted into the code? What happens when you start with a fresh instance of a page with TinyMCE (no code in the editor)? If you enter a whole bunch of text does the scroll bar show up then? Depending on how you’re writing your code, there is a chance that you might have some code that is causing TinyMCE to freak out a bit and not show the scroll bar. Feel free to post the HTML code that is causing the problem.

                      Now...for my honest option. I really don’t like the idea of allowing users to create layers and DIV’s in any richtext editor. The reason is that a DIV is a block element and I think should be something designated as part of a template, whether it be a page template, part of the output of a snippet, or the like. MODx is robust enough to where you can get around the need for inserting a bunch of DIV’s and spans in a content editor. Granted, we have users on our blog that use DIV’s all the time...but they mostly insert all this with nothing more than a simple textbox. Now, I can’t fix any issues with TinyMCE that is part of its behavior; that would be for the TinyMCE developers themselves to fix. Layer support in TinyMCE can be a bit quirky...especially if you’re not used to manually manipulating raw HTML code. So, if at all possible, I try and simplify things for the majority of my users and don’t allow anything but simple HTML elements in a content region that is wrapped with a specific DIV element. Novice users really don’t have any business using layers and thus you should code your templates to work around this and make it much simpler for the average user to add content to any given page. Template variables can be a big help when it comes to this. smiley
                        Jeff Whitfield

                        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."