We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Wonderful news Vlad... thanks!
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 6726
      • 7,075 Posts
      It’s amazing no real solution to the WYSIWYG + compliancy and semantic markup is not yet solved...

      I mean here is a vital part of web publishing that still remains to be fully solved. One could think it would rank high on priorities but it apparently is not...

      Maybe it’s because most clients don’t really care about compliancy and semantic markup, and most power users/ geeks don’t care about WYSIWYG (they use raw html or Markdown or Textile...). In the middle, designers who care about semantic markup and compliancy and user’s needs are torn between the two...
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 3022
        • 59 Posts
        Quote from: xstandard at Jan 25, 2006, 09:48 AM

        XStandard OS X version is currently in Alpha. It should work on FF 1.0+ and Safari 1.3+ on OS X 10.3.9+.

        Wait a minute. You mean you have a version for Windows and a version for OS X? That’s not what I call a browser based RTE! smiley

        I remember vaguely, when checking out XStandard a year ago, that it needs to install something on the client’s computer, hence the different versions. If this is the case, it is a show stopper for me, even if the product looks very nice.

        I am sorry.


        Bee
          • 32963
          • 1,732 Posts
          Hi David,

          Thanks for sharing this info with us.

          I’m thinking of making RTE fields support four modes:

          1) Source
          2) Structure
          3) Design (WYSIWYG)
          4) Safe Preview Mode (no scripts)

          When the editing a document the content field (or RTE TVs) will load in safe mode. The user can then select the source view, structured view (WYM if supported by browser) or Design tab.

          The reason for this is that most RTE takes a very long time to load when editing a document. Plus it also allows the user to easily swicth between the varous modes thus giving them greater levels of flexible editing.

          What do you all think?


            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.
            • 25663 MODX Staff
            • 12,272 Posts
            Vlad’s solution is an actual browser plugin, so it should be very fast to load.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              I like the idea, my partner wants the RTE and I hate it. I’m always changing the documents to not use it, and he keeps whining about it until I change it back. Even in "Source" I can’t make it do what I want half the time, and that’s why I do computers. Unlike children, computers always do what you tell them to do. I don’t need somebody else going behind my back telling it to do something else!
                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
                • 25663 MODX Staff
                • 12,272 Posts
                Hmmm... wonder if we could create a "null" RTE and load that for user settings...
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 4018
                  • 1,131 Posts
                  Quote from: rthrash at Feb 03, 2006, 10:34 AM

                  Hmmm... wonder if we could create a "null" RTE and load that for user settings...

                  Better said than done! It’s been mentioned before about allowing for a "textarea" only option so that an RTE doesn’t load for a content box. And, believe it or not, it’s just one simple line to add to the core code. I’ll be submitting this little addition for the next version, but in the meantime you can make the following change:

                  Go to the /manager/actions/dynamic/ directory:

                  Open mutate_settings.dynamic.action.php
                  Around line 800:

                  					<?php
                  						// invoke OnRichTextEditorRegister event
                  						$evtOut = $modx->invokeEvent("OnRichTextEditorRegister");
                  						if(is_array($evtOut)) for($i=0;$i<count($evtOut);$i++) {
                  							$editor = $evtOut[$i];
                  							echo "<option value='$editor'".($which_editor==$editor ? " selected='selected'" : "").">$editor</option>\n";
                  						}						 
                  					?>
                  


                  Change to:

                  					<?php
                  						// invoke OnRichTextEditorRegister event
                  						$evtOut = $modx->invokeEvent("OnRichTextEditorRegister");
                  						echo "<option value='none'".($which_editor=='none' ? " selected='selected'" : "").">None</option>\n";
                  						if(is_array($evtOut)) for($i=0;$i<count($evtOut);$i++) {
                  							$editor = $evtOut[$i];
                  							echo "<option value='$editor'".($which_editor==$editor ? " selected='selected'" : "").">$editor</option>\n";
                  						}						 
                  					?>
                  


                  Open mutate_user.dynamic.action.php
                  Around line 825:

                  					<?php
                  						$edt = isset($usersettings["which_editor"]) ?$usersettings["which_editor"]:$which_editor;
                  						// invoke OnRichTextEditorRegister event
                  						$evtOut = $modx->invokeEvent("OnRichTextEditorRegister");
                  						if(is_array($evtOut)) for($i=0;$i<count($evtOut);$i++) {
                  							$editor = $evtOut[$i];
                  							echo "<option value='$editor'".($edt==$editor ? " selected='selected'" : "").">$editor</option>\n";
                  						}						 
                  					?>
                  


                  Change to:

                  					<?php
                  						$edt = isset($usersettings["which_editor"]) ?$usersettings["which_editor"]:$which_editor;
                  						// invoke OnRichTextEditorRegister event
                  						$evtOut = $modx->invokeEvent("OnRichTextEditorRegister");
                  						echo "<option value='none'".($edt=='none' ? " selected='selected'" : "").">None</option>\n";
                  						if(is_array($evtOut)) for($i=0;$i<count($evtOut);$i++) {
                  							$editor = $evtOut[$i];
                  							echo "<option value='$editor'".($edt==$editor ? " selected='selected'" : "").">$editor</option>\n";
                  						}						 
                  					?>
                  


                  All this does is add an option to the "Editor to use" dropdown menu to allow setting the editor to "none", thus allowing just a simple textarea to be displayed instead of an RTE. I found this to be handy since I do have times when I want to insert in code that would otherwise get messed up by an RTE. smiley

                  Another little feature I’ll be adding in for the next version is the ability to switch between different RTE "modes" while editing a document via a dropdown menu. Definitely will be handy in those times when you want a given RTE to be the default but want to switch now and then temporarily when you need a textbox or the like. laugh
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 6726
                    • 7,075 Posts
                    @Raymond : about the 4 modes RTE, it would be great, yes !

                    @Ryan : I love the idea of per user setting for RTE grin

                    @Jeff : Thanks for theses code changes, will test that !
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l&#39;outil id
                      • 25663 MODX Staff
                      • 12,272 Posts
                      David, you can already choose editors on a user-by-user case: Users > Manage users > User Settings tab > Editor to use
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me