Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-63846

Autocreate property from input-editor tld doesnt work correctly with Simple editor

Details

    Description

      autoCreate property does not work using Simple when the value of autoCreate is false.

      1.- Steps to reproduce:

      • Modify next file:
        modules/apps/collaboration/blogs/blogs-web/src/main/resources/META-INF/resources/blogs/edit_entry.jsp
      • Change line 147:
        <liferay-ui:input-editor contents="<%= HtmlUtil.escape(title) %>" editorName="alloyeditor" name="titleEditor" placeholder="title" showSource="<%= false %>" />

      To
      <liferay-ui:input-editor autoCreate="<%= false %>" contents="<%= HtmlUtil.escape(title) %>" editorName="simple" name="titleEditor" placeholder="title" showSource="<%= false %>" />

      • Go to content -> blog -> add -> new blog entry

      2.- Expected behaviour:
      No JS errors

      3.- Current behaviour:
      JS Error: Uncaught TypeError: Cannot read property 'value' of null

      Attachments

        Activity

          People

            felix.zhang Felix Zhang
            antonio.pol Antonio Pol (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 11 weeks, 6 days ago

              Packages

                Version Package
                7.0.0 CE RC1