diff --git a/CHANGES.md b/CHANGES.md index 549a1ff55c..06c26522ba 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -30,7 +30,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 (#331). + 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 (#331). - **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 diff --git a/app/src/main/resources/ApplicationResources.properties b/app/src/main/resources/ApplicationResources.properties index 690a8746bc..9f92962d8f 100644 --- a/app/src/main/resources/ApplicationResources.properties +++ b/app/src/main/resources/ApplicationResources.properties @@ -1565,6 +1565,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 b7837e851e..5d34f58467 100644 --- a/app/src/main/webapp/WEB-INF/jsps/editor/EntryEditor.jsp +++ b/app/src/main/webapp/WEB-INF/jsps/editor/EntryEditor.jsp @@ -22,6 +22,11 @@ <%-- ********************************************************************* --%> <%-- content --%> + + + @@ -88,6 +93,10 @@ + + + +