Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    HTMLEditor using FCK after compile shows a blank page

    I have the HTMLEditor and got it working in dev mode works awesome, however after I compile it the page with it is blank.

    I get no errors or warning etc... just a blank page is there a way to fix this?

    SmartGWT 2.1
    GWT 2.0.3

    Thank you,

    #2
    By HTMLEditor are you referring to a component in smartgwt-extensions?

    Comment


      #3
      I found it while looking for a way to use fckeditor here are the links I came across.

      http://forums.smartclient.com/showthread.php?t=3703&highlight=HTMLEditor

      http://forums.smartclient.com/showthread.php?t=11154&highlight=HTMLEditor


      Thank you,

      Comment


        #4
        OK, this seems to be a custom component we're not really familiar with, but, if nothing is appearing it's likely that the fck .js libraries aren't being found. Try looking with Firebug to see if there are 404s or other problems.

        Comment


          #5
          Originally posted by Isomorphic
          OK, this seems to be a custom component we're not really familiar with, but, if nothing is appearing it's likely that the fck .js libraries aren't being found. Try looking with Firebug to see if there are 404s or other problems.
          Is it possible to add more buttons and/or capabilities to the RichTextEditor / RichTextItem, happy to do this on my own if it's possible?

          I see these but are there more or a way to extend to add more?
          controlGroups - the control groups. default is {"fontControls", "formatControls", "styleControls", "colorControls"}

          I'm looking for hrefs, table, div, etc...

          Comment


            #6
            There's nothing wrong with using fckEditor here. Our general advice is to either use fckEditor (or another similar editor), or, sponsor the specific features you want as an add-on to the simple RichTextEditor in SmartGWT. You sound like you need enough functionality that continuing with fckEditor makes more sense.

            Comment


              #7
              Originally posted by Isomorphic
              There's nothing wrong with using fckEditor here. Our general advice is to either use fckEditor (or another similar editor), or, sponsor the specific features you want as an add-on to the simple RichTextEditor in SmartGWT. You sound like you need enough functionality that continuing with fckEditor makes more sense.
              Is there a reason it would work in dev mode but not once compiled?

              In dev mode but once compiled it fails? Wouldn't the pathing be the same?

              I'll try using Firebug just wondering if there was a quick answer for the difference between dev and the compiled version.

              Comment


                #8
                Check in your deployment directory for the fckeditor folder. It needs to be deployed in the same directory as your gwt files. A gwt compile won't deploy it unless you make the fckeditor part of your project. Since it is a lot of files, I typically deploy it separately since it only needs to be copied once.

                Comment


                  #9
                  Originally posted by pboysen
                  Check in your deployment directory for the fckeditor folder. It needs to be deployed in the same directory as your gwt files. A gwt compile won't deploy it unless you make the fckeditor part of your project. Since it is a lot of files, I typically deploy it separately since it only needs to be copied once.
                  I have a image of my deployment attached is there something I need to change? This works in dev mode, but if I need to change something I'm more than happy to if I can get it to work.

                  Thank you for your help
                  Attached Files

                  Comment


                    #10
                    Not sure why it would work in dev but not prod. Anyway,
                    do you have something like
                    <script src="fckeditor/fckeditor.js"></script>
                    in your HTML file?

                    Comment


                      #11
                      Originally posted by pboysen
                      Not sure why it would work in dev but not prod. Anyway,
                      do you have something like
                      <script src="fckeditor/fckeditor.js"></script>
                      in your HTML file?
                      Yes directly after my body tag
                      Code:
                      <script language="javascript" src="fckeditor/fckeditor.js"></script>

                      Comment


                        #12
                        Try looking in the access logs to see if it is looking in the right place.

                        Comment


                          #13
                          Originally posted by pboysen
                          Try looking in the access logs to see if it is looking in the right place.
                          Sorry to be ignorant but which access logs?

                          Comment


                            #14
                            Enable your server access logs (e.g. tomcat) to see what urls are being requested. If you like, contact me via email (pboysen@iastate.edu) and we can resolve this more quickly.

                            Comment

                            Working...
                            X