We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29774
    • 386 Posts
    First things first: I’m seriously impressed! What a versatile, well thought-out framework this is... possibly the best I’ve used, and I really have tried lots of them over the years... but I usually ended up rolling-my-own for one reason or another. Not anymore I hope smiley

    Just a few questions:

    I’m trying to integrate my favourite editor wysiwygpro into the CMS with a plugin but have come up against a few problems. The editor requires a constant to be defined - the path to itself:
    define(’WP_WEB_DIRECTORY’, ’/assets/plugins/wysiwygpro/editor_files/’);
    This is defined in the editors’ own configuration file: /assets/plugins/wysiwygpro/editor_files/config.php

    I’ve got the editor to load in textareas but the the WP_WEB_DIRECTORY path has become:
    ’/manager/\"/assets/plugins/wysiwygpro/editor_files\"2’

    it’s not escaping the path... anyone know why this happens?

    Second problem: the FCKEditor uses JavaScript to replace textareas, and I imagine it uses the DOM to get the textarea content. But WysiwygPro uses PHP to replace the $content of the textarea (you use $editor->set_code($content) ) - so the problem is, how do you get the value of a given textarea? Is it even available to the system event OnRichTextEditorInit ?

    It would be great to get this working; WysiwygPro is extremely good at producing clean XHTML, plus it has lots of advanced features that FCKEditor either lacks or implements poorly - like being able to generate a list of links to dynamic content in the links pop-up, and stand-alone image and file managers...

    Many thanks in advance if anyone can help!
      Snippets: GoogleMap | FileDetails | Related Plugin: SSL
      • 32847
      • 171 Posts
      Hello,
      Indeed, wysiwygpro looks fine but I think it can with such a price wink
        • 6726
        • 7,075 Posts
        Quote from: xeres at Mar 09, 2006, 05:08 PM
        Hello,Indeed, wysiwygpro looks fine but I think it can with such a price wink

        Seems fine but no better than others : lots of   in source code for instance....
        I’d have to check more thouroughly, but I have more faith in WYSYWYM
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 29774
          • 386 Posts
          It’s worth the money ($47). This is an example of a site I created where all content areas are managed with wysiwygpro:

          http://www.realmeat.co.uk/
          (yes it’s a coldfusion cms that uses a php wysiwyg editor, now that really was tough to integrate... you see I’m rather determined to use this editor).

          Notice how clean the code is in the content areas. This is all content entered by the client... wysiwygpro does a superb job of outputting clean xhtml, and there is some fairly complex stuff there - images with captions, data tables, quotations/citations and so on. Besides that, wysiwygPpro is a mature product with an excellent PHP and Javascript API that lets you configure and tune the thing until it’s perfect.

          So back to those questions... can anyone explain what event data ’bubbled up’ from OnRichTextEditorInit ? Does included code in a plugin have to be run with eval()? I guess my problem here is the lack of documentation on building plugins...
            Snippets: GoogleMap | FileDetails | Related Plugin: SSL
            • 17477
            • 12 Posts
            Did you ever get this Wysiwyg Pro integrated?

            Very tidy example site, I’ve looked at the code and agree that it’s very clean for a WYSIWYG/end-user maintained site.

            I can’t see sending our clients into the manager or even QuickEditing pages until I can sort out WYSIWYG option that I can trust. I owe FCKEditor a couple more hours of customizing fiddling including updating to the latest release, but I just don’t see myself ever really trusting it to output clean XHMTL given the end-users I’m working with.

            Loren
              • 29774
              • 386 Posts
              Hi Loren,

              I must admit I gave up on the wysiwygpro plugin; I had it *nearly* working in 0.91 but it broke when I upgraded to 0.92. The problem is that wysiwygpro is embedded with php, whereas FCKEditor uses Javascript - so it’s not as simple as just replacing one for the other. So I gave up, realising that I would have the same problem with each upgrade to the core.

              Instead I have found that FCKEditor is nearly as good a solution if you customise it. It does produce valid xhtml, and for the most part it’s clean.

              The remaining issues that I haven’t solved are:
              * No ability to produce a dynamic list of links to internal pages, which is an incredibly useful feature of wysiwygpro.
              * The creation of paragraphs (when pressing return) when using Firefox on a *mac* is a bit rubbish. Mostly you end up with
              . This works properly on a PC however, so it may not be an issue.
                Snippets: GoogleMap | FileDetails | Related Plugin: SSL