Rt.The convention.php in the thinkphp conf file has a configuration option' default_filter ' = ' htmlspecialchars ',//default parameter filtering method for I function ...This method is turned on by default. In other words, the data stored in the database will be escaped by the Htmlspecialchars function.I used the kindeditor Rich Text editor in my project
Add editor source to the public directory below:To configure the editor in the interface:The editor can be displayed in the interface by introducing;In the picture upload process encountered a problem:His path to the instance is:And the path I visited shows www.tp5.com this is a site domain name for the local test environment, the following error is displayed,The
Download the Rich Text Editor installation package URL as needed: ckeditor.com, followed by importing the CKEditor folder into the Webroot root directoryCreate Moneytest page, submit address is result.jsp class= "CKEditor" name= "txtcked" >Result.jsp Key Code request.setcharacterencoding ("Utf-8"); %> Class= "CKEditor" name= "mycked" >Implementation result
Download the Rich Text Editor installation package URL as needed: ckeditor.com, followed by importing the CKEditor folder into the Webroot root directoryCreate Moneytest page, submit address is result.jsp Result.jsp Key CodeImplementation results:Rich Text Editor
" });
Go to tinymce/skins/lightgray/, modify the Skin.min.css file, find the. mce-tinymce section, add a margin-left parameter, and change to. Mce-tinymce{visibility: Visible!important;margin-left:100px; Position:relative}, you can move the editor right 100px to reveal the Label.
Add the following code below the class models.py to display the Rich Text edit
Modify and add rich text editor on the Django 2.0 admin background management interface, djangoadmin
1. File Path:
For example, if the Python environment is on the drive F: \ My \ django \ env \ Lib \ site-packages \ django \ contrib \ admin \ templates \ admin \
2. Modify the logon Interface Name:
Initial Django Logon: F: \ My \ django \ env \ Lib \ site-packag
Today, in the project, a topic page is decomposed into editable small module functions. So we useBaidu Rich Text EditorAt the beginning, nothing was wrong.
The result is thatTest,Test DataTag htmlCode, Copy to editor"Source code"After clicking "save", we found a strange phenomenon. The Xheditor Editor"Try again. It's
UEditor Baidu Rich Text Editor-preview solution that blocks the header during online preview, ueditor-preview
Problem:
The normal situation should be shown as follows:
Solution:
1. Open ueditor/dialogs/preview/preview.html
2. Find the sentence below the body Node
Document. getElementById ('preview'). innerHTML =
Recently, to make a publishing article page, select the Summernote in the Rich text editorCompared to the ckeditor,summernote to be a lot simpler, simple to just introduce CSS and JS on it.Configuration Application Reference for CKEditor I wrote the article beforeCKEditor Series Articles
First look at the effect of Summernote
Summernote See without any configuration, the introduction of CSS and JS to c
CKeditor can be used in the background article editor when a website is built using Flask. CKeditor supports many text styles and is open-source, here, let's take a look at the CKeditor tutorial integrated with CKeditor rich text editor in the Python Flask framework. CKedito
When an HTML code is submitted for a text box, the MVC action blocks the submission by default, primarily for security reasons. If sometimes the requirement is to submit the HTML code to a single table, then we can take the following two ways to achieve this:1. Tag the Controller's action method [ValidateInput (False)] (for a specific action)2. Add MVC submits page handling methods that contain HTML code (especially when using the Kindeditor
1. CDN Addresssrc= "//cdn.tinymce.com/4/tinymce.min.js">script >2. Modify the base.html templateEdit the base.html under Lib\site-packages\django\contrib\admin\templates\admin under PythonIntroduce the above code in the head3, modify the base_site.htmlEdit the base_site.html under Lib\site-packages\django\contrib\admin\templates\admin under PythonAdd in {% block branding%} Scripttype= "Text/javascript">Tinymce.init ({selector:'textarea', Height: -, T
The day before yesterday wanted to try to do a simple, but nice-looking online notepad. At present, with Ror+mysql+jquery+bootstrap, ROR and front-end things are half a bucket of water level, while learning while groping.Features I think that every time you go to see a week or two weeks (optional) date list, default week, full width display, two weeks is divided into two columns.Each date can be displayed in the middle of the night and recorded events, click to edit. List shelves Well, now to ed
Vue-quill-editor upload image will be converted to Base64 format, but this is not what we want, and then turned a lot of articles to find the desired, the following directly on the coderef= "Upload" style= "Display:none" >Reference article:https://github.com/surmon-china/vue-quill-editor/issues/102Vue+element UI +vue-quill-editor
First, download the CKEditor source code. Download to the CKEditor website. Then unzip the downloaded file.
Open the extracted file and copy the files from the Ckeditor\webcontent\ckeditor directory to the project directoryCreate a new JSP page to write code: Class= "CKEditor" name= "txtcontent" >On another page: request.setcharacterencoding ("Utf-8"); %> Class= "CKEditor" name= "mycontent" >Implementation interface:After submission:
Ri
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.