Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-828

Unable to set text/wiki editor width (value calculated, but not assigned:)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.1 M3
    • 1.0 B3
    • {Unused} Core
    • None
    • patch

    Description

      Following code appears in com.xpn.xwiki.XWiki#getTextArea(...) and com.xpn.xwiki.XWiki#getHTMLArea(...)

      int cols = 80;
      try {
          context.getWiki().getUserPreferenceAsInt("editbox_width", context);
      } catch (Exception e) {
      }
      

      It should have been:

      int cols = 80;
      try {
          cols = context.getWiki().getUserPreferenceAsInt("editbox_width", context);
      } catch (Exception e) {
      }
      

      Anyway, the xwiki10b1 skin uses css to set the editor width, so this is not important for the default wiki

      Attachments

        Activity

          People

            vmassol Vincent Massol
            melvng Melv Ng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: