| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| --> |
| |
| <ui:composition template="/main.xhtml" |
| xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:tc="http://myfaces.apache.org/tobago/component" |
| xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> |
| |
| <tc:section label="So many alternatives"> |
| <p> |
| You can embed HTML editor in Tobago easily, |
| but there is no HTML editor component in Tobago. |
| The reason is, there a many web-based editors in the web available, with different |
| licences, different features (and sometimes different bugs). |
| </p> |
| <p> |
| So Tobago will not implement it's own HTML editor. |
| You can choice you favorite editor and integrate it in your application. |
| In this application there are two editors embedded as an example. |
| </p> |
| <ul> |
| <li>TinyMCE</li> |
| <li>CKEditor (doesn't work with CSP activated in this demo)</li> |
| </ul> |
| </tc:section> |
| <tc:section label="About Security"> |
| <p> |
| The application should be protected against invalid or malicious HTML content. |
| If the application uses an HTML editor in the browser, an attacker is able to modify the clean code |
| and submit malicious code. |
| That must be checked on server side! |
| </p> |
| <p> |
| There is a |
| <tc:link |
| label="sanitiser" |
| outcome="/content/30-concept/80-security/10-sanitize/Sanitize.xhtml"/> |
| in Tobago to scan HTML. |
| </p> |
| </tc:section> |
| </ui:composition> |