diff --git a/CHANGES.md b/CHANGES.md index b2240dc96..d6a16ab1e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -189,7 +189,11 @@ - **Entries with scripts or embeds open as HTML.** If an entry contains scripts, frames, embedded objects, event-handler attributes or `javascript:` links, the rich-text editor opens it in the HTML textarea - with a notice, and the stored HTML is kept as is (#319). + with a notice, and the stored HTML is kept as is. Entries with forms, some + Bootstrap data attributes (such as `data-toggle`), a link or URL-like word + containing `<`, as in some code samples, or an iframe or other tag that the + editor's code view removes, even inside an HTML comment, also open in the + textarea (#319). - **Names are shown as text.** Screen and full names are HTML-escaped where templates print them and written as plain text in feeds; commenter names and addresses are escaped in HTML notification emails; HTML comments are diff --git a/app/src/main/resources/ApplicationResources.properties b/app/src/main/resources/ApplicationResources.properties index deb045f0c..1eaffd15b 100644 --- a/app/src/main/resources/ApplicationResources.properties +++ b/app/src/main/resources/ApplicationResources.properties @@ -1578,6 +1578,7 @@ weblogEdit.draft=Draft weblogEdit.draftEntries=Recent Drafts weblogEdit.deleteEntry=Delete Entry weblogEdit.insertMediaFile=Insert Media File +weblogEdit.richEditorShowsHtml=This entry contains HTML the rich text editor cannot show safely, so it opens as HTML. weblogEdit.inlineImageInvalid=This entry contains an unsupported or invalid embedded image. Use a PNG, JPEG or GIF image, or insert a media file. weblogEdit.inlineImageTooLarge=This entry has too much embedded image data. Resize the image or ask an administrator to enable media uploads. error.postTooLarge=The form is too large to submit, so nothing was saved. Use your browser's Back button to return to it. If it contains pasted images, use smaller images or insert them as media files. An administrator can raise the server's maximum POST size. diff --git a/app/src/main/webapp/WEB-INF/jsps/editor/EntryEditor.jsp b/app/src/main/webapp/WEB-INF/jsps/editor/EntryEditor.jsp index 3c6f4d21c..0a0ce7cdc 100644 --- a/app/src/main/webapp/WEB-INF/jsps/editor/EntryEditor.jsp +++ b/app/src/main/webapp/WEB-INF/jsps/editor/EntryEditor.jsp @@ -23,6 +23,11 @@ <%-- ********************************************************************* --%> <%-- content --%> + + + @@ -84,6 +89,10 @@ + + + + ", + "

text

", + "

text

", + "link", + "link", + "link", + "link", + "", + "x", + "
", + "
", + "", + "", + "
x
", + "
x
", + "", + "", + "cell outside a table", + "x", + "", + "