We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24495
    • 407 Posts
    @Bravado: I work on accessible pages for some years. And there are cases to have images in content with and without an alternate description. To validate there must be an alt attribute. If a text is unnecessary, the alt should be empty (and not away).

    If an image has a visible legend and this legend says the same as an alt attribute (example: Me and my brother), the alt is unneccessary but it must be available as an empty attribute. Otherwise a screenreader like JAWS reads the image file name in this case (and with a filled alt you here the description twice = information overhead). With missing alt you here:
    ... some text IMAGE dec05634896.jpg more text ...

    If the alt attribute is empty the screenreader reads nothing or "IMAGE" (without any addition) depending on individual configuration of the sr. The standards of W3C WAI request the empty alt if a description is waste. For all decorative images you should have an empty alt (if you can’t put them as background images). Otherwise you here nonsense like "a colorful swirl" or "green bar with blue spots" or the (unwanted) file name.

    Back to the roots: I’ll ask at moxiecode. Maybe there is a custom parameter to set this.
      • 36624
      • 535 Posts
      Quote from: minder at Mar 24, 2008, 03:42 AM


      Everything works perfect in Mozilla and Opera, but that dumb IE displays plain textarea. TinyMCE failed to initialise? Why?

      Any suggestions?


      hi,

      try to comment the <base href="[(site_url)]" /> tag....



        CTRL+SHIFT+U - Clear Cache
        CTRL+SHIFT+H - Hiding Heft Panel
        CTRL+SHIFT+N - Fast Create Resource
        CTRL+ALT+P - Preview Recource (in edit resorce window)
        CTRL+ALT+S - Save
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        IE goes stupid (stupider?) with that tag being self-closing; try
        <base href="[(site_url)]"></base>
          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
          • 24495
          • 407 Posts
          Found a post at moxiecode forum for my problem with missing empty alt: http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=27081#p27081 (and below).

          I tried to put
          extended_valid_elements : "img[src|class=|style=|id|width|height|alt=]",
          verify_html : true

          into the TinyMCE plugin configuration field "Custom Parameters". After saving the input is cut off to
          extended_valid_elements : "img[src|class

          Seems that the equal sign is a problem. Putting only
          verify_html : true

          has no effect.

          Any ideas to fix this? Think it’s not a moxiecode issue but rather an issue with the plugin implementation in MODx?
            • 27733
            • 99 Posts
            A few Qs for the tiny wizards:


            • Is it possible to configure each instance of the editor? For instance, I’ve added an editor for a sidebar area and would like to limit the plugins/buttons available to that content area; and

            • With the above concept in mind, and assuming it’s possible, I’ve been entertaining the concept of using an instance of the editor (with no buttons) for a TV that houses article titles in a news section of the site I’m working on. What I’m really going for is the html special character encoding functionality. So, say when an end user enters quotes or special characters like em dashes, etc., the correct html will be output. Does that sound like a sensible idea, or is there a pre-existing method for achieving html formatting in small richtext fields?

            • Is the spellchecker plugin implementable? The necessary support files (in the plugin’s directory [classes, includes, config.php, and rpc.php]) do not appear in the modx distribution and I wonder if there’s reason keep it that way, or can they be added back in without harm?

            Thanks for your help!
              ------
              Server: *nix, ModX Evo 1.0.4, Apache 2.x, PHP 5.x, Mysql 5.x.
              • 4018
              • 1,131 Posts
              @rasc: Add this to my to-do list. I’ll see if I can figure out a way to allow for escaping the equals signs so that the functions that parse the plugin options don’t get confused. smiley

              @smg6511: It’s not possible to configure each instance...not yet at least. One of the things I’m looking at doing is rebuilding all of the RTE plugins as classes. The benefit of this would be that you could create your own instance pretty easily via a snippet that would give you all the benefits of the plugin. Theoretically, this would also allow you to create a TV and, using the ID of the TV, create an instance of TinyMCE using the snippet and target the TV. Don’t know of a timeline when this will be done but I definitely have it on my to-do list. smiley

              Regarding the spellchecker plugin, I haven’t played with it as much as I’d like. I think some of the pre-requisites for it before kept me from inplementing. I’ll look at it again and see what progress has been made in way of standardization of it.
                Jeff Whitfield

                "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                • 24495
                • 407 Posts
                Thanks, that’s great. Results in more usability of TinyMCE!
                  • 36624
                  • 535 Posts
                  mmm i think you can have multiple instance if you use something like this in your page :
                  <script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce303/jscripts/tiny_mce/tiny_mce.js"></script>
                  <script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce303/xconfig.js"></script>
                  <script language="javascript" type="text/javascript">
                  tinyMCE.init({
                      mode : "exact",
                      elements : "element1",
                      theme : "advanced",
                      plugins : "plugin1, plugin2",
                      theme_advanced_buttons1 : "button1, button2",
                      content_css : "element1.css"
                  });
                  tinyMCE.init({
                      mode : "exact",
                      elements : "element2",
                      theme : "advanced",
                      plugins : "plugin2, plugin3",
                      theme_advanced_buttons1 : "button3, button4",
                      content_css : "element2.css"
                  });
                  
                  	function myFileBrowser (field_name, url, type, win) {		
                  		//var cmsURL = '/assets/plugins/tinymce303/mcpuk/browser.php?Connector=/assets/plugins/tinymce303/mcpuk/connectors/php/connector.php&ServerPath=/&editor=tinymce3&editorpath=/assets/plugins/tinymce303';    // script URL - use an absolute path!
                  		var cmsURL = '[(base_url)]assets/plugins/tinymce30/mcpuk/browser.html?Connector=[(base_url)]assets/plugins/tinymce30/mcpuk/connectors/php/connector.php&ServerPath=[(base_url)]&ExtraParams=tinymce3';    // script URL - use an absolute path!
                  switch (type) {
                  			case "image":
                  				type = 'images';
                  				break;
                  			case "media":
                  				break;
                  			case "flash": 
                  				break;
                  			case "file":
                  				type = 'files';
                  				break;
                  			default:
                  				return false;
                  		}
                  		if (cmsURL.indexOf("?") < 0) {
                  		    //add the type as the only query parameter
                  		    cmsURL = cmsURL + "?type=" + type;
                  		}
                  		else {
                  		    //add the type as an additional query parameter
                  		    // (PHP session ID is now included if there is one at all)
                  		    cmsURL = cmsURL + "&type=" + type;
                  		}
                  		
                  		tinyMCE.activeEditor.windowManager.open({
                  		    file : cmsURL,
                  		    width : screen.width * 0.7,  // Your dimensions may differ - toy around with them!
                  		    height : screen.height * 0.7,
                  		    resizable : "yes",
                  		    inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!
                  		    close_previous : "no"
                  		}, {
                  		    window : win,
                  		    input : field_name
                  		});
                  		return false;
                  	}
                  </script>
                    CTRL+SHIFT+U - Clear Cache
                    CTRL+SHIFT+H - Hiding Heft Panel
                    CTRL+SHIFT+N - Fast Create Resource
                    CTRL+ALT+P - Preview Recource (in edit resorce window)
                    CTRL+ALT+S - Save
                    • 27733
                    • 99 Posts
                    Jeff, thanks for the info — I look forward to your ideas coming to fruition! I may experiment with the spellchecker a bit myself and, if I get it operational, chime back in on the subject.

                    @manu: Thanks for your suggestion. I’m guessing that this script allows multiple instances on the front-end and not the back? The context I’m really looking to control is the manager view of the RTEs ...
                      ------
                      Server: *nix, ModX Evo 1.0.4, Apache 2.x, PHP 5.x, Mysql 5.x.
                      • 36624
                      • 535 Posts
                      Quote from: smg6511 at Apr 11, 2008, 01:32 PM

                      @manu: Thanks for your suggestion. I’m guessing that this script allows multiple instances on the front-end and not the back? The context I’m really looking to control is the manager view of the RTEs ...
                      aha.. , yes it’s for the front-end not the manager.
                        CTRL+SHIFT+U - Clear Cache
                        CTRL+SHIFT+H - Hiding Heft Panel
                        CTRL+SHIFT+N - Fast Create Resource
                        CTRL+ALT+P - Preview Recource (in edit resorce window)
                        CTRL+ALT+S - Save