We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4018
    • 1,131 Posts
    Ok, kids...this is the first beta of the Xinha plugin I’m working on. Keep in mind that there may be a bug or two here and there and that there is still some things left to be done. The following parameters are available for the configuration of the plugin:


    • Editor Skin: Selects which editor skin you wish to use.
    • Strip base url: Tells the editor to remove the base url from links and images.
    • Stylist Plugin: Enables the Stylist plugin so long as a CSS file is selected.
    • Xinha Plugins: Checkboxes for enabling available plugins.

    Like the FCKeditor plugin, an additional configuration parameter is available under Manage Resources/Plugins/Xinha/Configuration. You can add additional plugins under ’Custom Plugin Set’ by typing in the names of the plugins you wish to add separated by commas (no spaces!). These will show up as additional checkboxes in the plugin configuration.

    Some of the default plugins are not enabled at this time: CSS, DynamicCSS, FormOperations, Form, FullPage, HtmlTidy, Linker, SpellChecker, SuperClean, and Template. They are either not compatible or are not recommended for use with MODx. The folders for these plugins will likely be stripped from the installation as we approach a final version.

    The Resource Browser for file links and images has not yet been integrated and is still on my ’To-Do’ list. This will most likely be done as additional plugins. A new ’InsertPicture’ plugin was recently added to a newer Xinha build and I will likely base these plugins on it. More to come on that...

    Please post any bugs, comments, or whatnot. Definitely would appreciate the feedback! smiley

    L8R!

    Jeff

    Update v0.11:
    * Fixed problem with multiple instances (variable wasn’t set). Xinha should now work with QuickEdit and TV’s.
    * Fixed a few minor problems with certain plugins not showing up.
    * The SuperClean plugin has been added to the list.

    Update v0.2:
    * Added two new plugins: ModxImage & ModxLink. These replace the default ’Insert Image’ and ’Insert Link’ dialog boxes with ones that provide integration with the resource browser. The plugins are available so long as the ’Use Resource Browser’ option is set to ’Yes’.
    * Removed unused plugins from plugins directory.

    Update v0.3
    * Updated Xinha to revision 421.
    * Added ClientsideSpellcheck, GetHtml, HorizontalRule, PasteText plugins.
    * Changed how plugin selection works. Custom plugins are now entered via a comma delimited textbox. The plugin parameter for this was removed.
    * Front-end capabilities were not added due to configuration and security issues. It is not recommended to use Xinha for a RichText widget!

    11/20/2005 Notes:
    Regarding update v0.3, this is still considered a beta because...well...Xinha is still a beta itself. Until a stable, official 1.0 release, there are going to be some outstanding issues with Xinha. These issues effect what Xinha can and cannot do in MODx. Most notably, Xinha is not the most configurable editor when it comes to its toolbar. As such, using Xinha as a front-end editor within a RichText widget is not recommended since too many options would be available for the average visitor. Thus, I didn’t rewrite the plugin to allow for front-end use...I just think that Xinha is not the right editor for this. Also, I’ve noticed quite a few quirks in getting Xinha to display properly in all browsers (especially IE!!).

    It is for these reasons above that I will not likely be continuing full development on the plugin. I might release an update here and there...but unless I start seeing some serious turn-around on the development of Xinha, I just don’t think it’s worth the effort to continue supporting it for the time being. This doesn’t mean that Xinha will be ignored in the future...it just means that I won’t be messing with it too much...at least until a more stable version is available. smiley

    Update (1/4/2006): Moved the plugin to the Development section for public use (http://modxcms.com/forums/index.php/topic,2058.0.html)
      Jeff Whitfield

      "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
      • 32963
      • 1,732 Posts
      Very nice Jeff smiley

      I like the cool toolbars!

      One thing though... After clicking on the "Toggle borders" button on the Xinha toolbar and then clicking a modx menu item from the left sidebar, the menu opens up in a separate window.

        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 4018
        • 1,131 Posts
        Quote from: xwisdom at Sep 07, 2005, 12:33 AM

        After clicking on the "Toggle borders" button on the Xinha toolbar and then clicking a modx menu item from the left sidebar, the menu opens up in a separate window.

        I see what you mean...looks like it only happens with Internet Explorer. Firefox is fine though. I’ll look into it. Definitely a bug with that particular plugin though.
          Jeff Whitfield

          "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
          • 34162
          • 1 Posts
          I just install Xinha and it works for FF and IE but when I change the system configuration to use Xinha as an editor and tried to edit the content via QuickEdit I only get a plain old textarea box rather than the Xinha editor.

          What is missing?

          PS: Interesting stats in the editor size:
          1772 fckeditor
          5912 xinha

          Thanks
            • 1764
            • 680 Posts
            Quote from: chanh at Sep 07, 2005, 09:44 AM

            ...and tried to edit the content via QuickEdit I only get a plain old textarea box rather than the Xinha editor.

            I’ll have to download this plugin and see what’s causing the problems. When you tried to use Xinha with QuickEdit did you get any javascript errors at all?

            I haven’t tried QuickEdit with TinyMCE either, has anyone verified that it works? If not I’ll try that too.
              • 4018
              • 1,131 Posts
              Quote from: chanh at Sep 07, 2005, 09:44 AM

              I just install Xinha and it works for FF and IE but when I change the system configuration to use Xinha as an editor and tried to edit the content via QuickEdit I only get a plain old textarea box rather than the Xinha editor.

              This is a simple fix. It would seem that I left out a line of code in the plugin itself for defining the textareas for Xinha to replace. At the moment, it works for the default "ta" textarea for content. Stupid me! I’ll have it fixed up later this afternoon and will replace the current zip file.

              Quote from: chanh at Sep 07, 2005, 09:44 AM

              PS: Interesting stats in the editor size:
              1772 fckeditor
              5912 xinha

              Yeah...I know it’s big right now! LOL! The problem is that I need to go through and delete out all the plugins not in use...namely the ImageManager plugin, which is probably the biggest one.

              More to come soon! smiley
                Jeff Whitfield

                "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                • 4018
                • 1,131 Posts
                Quote from: aNoble at Sep 07, 2005, 11:54 AM

                I haven’t tried QuickEdit with TinyMCE either, has anyone verified that it works? If not I’ll try that too.

                TinyMCE appears to work just fine with QuickEdit. smiley
                  Jeff Whitfield

                  "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                  • 4018
                  • 1,131 Posts
                  Ok...see my first post. I’ve updated the plugin to version 0.11-beta. This fixes the missing instance variable thus making it possible to use Xinha for TV’s and QuickEdit. I’ve tested Xinha with QuickEdit and it appears to work quite well. Also, I fixed a few minor little things with some plugins not showing up.

                  In regards to the "Toggle Borders" function...well...it’s a weird bug and one that doesn’t have a clear answer other than "That’s IE for ya!!". It’s weird because all this button does is launch a toggleBorders function from the main htmlarea.js file. As to why it forces IE to ignore the target for any links in the menu...well...that’s the mystery! Considering the massive changes we’re making with TP4, I probably wouldn’t put too much effort into this one. Plus, as an experiment, try changing the table the menu links reside in and change it to a couple of DIV’s or something. See if the problem goes away then. Just a thought. wink
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 32963
                    • 1,732 Posts
                    Hmmm,

                    Can you drop the Xinha devlopers a line on this bug? Maybe they can find a work around.

                      xWisdom
                      www.xwisdomhtml.com
                      The fear of the Lord is the beginning of wisdom:
                      MODx Co-Founder - Create and do more with less.
                      • 4018
                      • 1,131 Posts
                      Quote from: xwisdom at Sep 08, 2005, 08:44 AM

                      Hmmm,

                      Can you drop the Xinha devlopers a line on this bug? Maybe they can find a work around.



                      No prob...I’ll post a message on their forum now. I think it’s a frame-specific thing...just a guess.
                        Jeff Whitfield

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