We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 727
    • 502 Posts
    There are two things with TinyMCE that really, really bug me. I was hoping someone would have a fix for them.

    1. When you start typing in a document it doesn’t wrap that first paragraph in p tags. If your p tags are styled to place a space above the paragraph, which is common, then it won’t show the correct spacing. Next time you go to add some text above that first paragraph it will decide to now use p tags.

    2. Every time I add a link, it puts a space after the link text.

    Any ideas?

    Andy
      • 17834
      • 4 Posts
      Currently am getting a wierd issue when trying to show a vid (wmv file) using add video, It seems to add properly when i click add i click save then when i try and look at on the site i get nothing. I go back to edit it and can see code

      <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="0" width="0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
      <param value="assets/media/Vidz/krush.avi" name="movie" />
      <param value="high" name="quality" />
      <param value="false" name="menu" />
      <param value="" name="wmode" /></object>

      Showing as a flash file when i right click on edit. Any ideas as i have done this about 5 times and still same result. sad

      http://www.krushallnighter.com/index.php?id=11 is url for a test

      MK
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I checked your page, and got something, an image anyway, but the code I see is somewhat different:
        <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" id="1" width="100" height="100" align="top">
        <param name="enabled" value="true" />

        <param name="stretchtofit" value="true" />
        <param name="balance" value="10" />
        <param name="volume" value="100" />
        <param name="id" value="1" />
        <param name="src" value="assets/media/Vidz/krush.avi" />
        <param name="align" value="top" />
        <param name="width" value="100" />
        <param name="height" value="100" />
        <embed type="application/x-mplayer2" enabled="true" stretchtofit="true" balance="10" volume="100" id="1" src="assets/media/Vidz/krush.avi" align="top" width="100" height="100"></embed>

        </object>
        This is with FF on Mac; first I qet a QuickTime logo, then a fairly small image (first frame of movie, I presume) which runs the movie when I double-click on it, but no sound, and no controls.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 10323
          • 35 Posts
          I’m having trouble with the TinyMCE editor inside the TVs pane when editing a document in the manager: The editor area below the toolbars is only some 40 pixels high, barely any content is visible.

          When I set the ’Advanced Resizing’ parameter to ’true’ in the plugin configuration I can resize the editor to a reasonable height temporarily. How can I get the editor to display at a larger height in the TV pane without having to resize each time?

          Jeff: Thanks for the fine TinyMCE configuration options!
            • 1511
            • 144 Posts
            I’ve set the TinyMCE ’Path options’ to FullPathUrl or RootRelative, since when set to docRelative, my images in RSS won’t display properly.
            And when I edit the content in manager, insert the link, select some document from the documents list, it just adds a ’"/manager/" right in front of the [~id~] tag. This way the links are not valid.

            When I edit the content in the front-end (NewsPublisher snippet), it won’t let me format my text. Whenever I hit Enter, it inserts <p>&nbsp;</p>.
            The JavaScript send an error "i.oldTarget.Element.onChange is not a function". Any ideas?

            I’m using TinyMCE 2.0.8 with MODx 0.9.5, Firefox 2, have the "FLASH" plugin disabled and removed, full web theme, logged in as admin.
              • 4018
              • 1,131 Posts
              Hmm....looks like I need to fix a few bugs! Lots of suggestions to mull over too! Heh heh! I’ll see if I can get an update out quickly. laugh
                Jeff Whitfield

                "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                • 16885
                • 255 Posts
                I’ve got one I didn’t notice in this topic yet; TinyMCE is generating HTML 4 code, while my page is XHTML 1.0, both on the front and backend, it’s using the settings of my xconfig (XHTML elements), but it doesn’t automatically close tags like
                ’s but also generates things like ’<font color="red">bla</font>’, which is incorrect.
                  • 10746
                  • 126 Posts
                  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
                    • 26435
                    • 1,193 Posts
                    I need to have file/media/image upload from the front end editor.
                    after searching through the plugin, it looks like on line 327
                    	case "OnRichTextEditorRegister": // register only for backend
                    

                    That the RTE only can be registered in the backend?
                    is there a way to register it in the front end to take advantage of mcpuk?
                    If it can’t be registered, where would be a good place to start looking to hack this piece so I can override it and allow upload from the frontend?

                    -sD-
                    Dr. Scotty Delicious, Scientist.
                      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                      All of the above... in no specific order.


                      I send pointless little messages
                      • 26435
                      • 1,193 Posts
                      maybe it is line 180
                      global $use_browser;

                      Is that globally set in the manager only, or is this variable available too in the frontend?

                      -sD-
                        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                        All of the above... in no specific order.


                        I send pointless little messages