Writing a plug-in based on it is also very simple. Quill Is also a very hot rich text, the skin is very elegant. I used to use it in company project.This year, the 5.0 version of the UI has also become more beautiful, quite good, and it has the richest plugins. Do not use anyway! Do not use it! Do not use it!Ĭkeditor Ckeditor is also a veteran company to do rich text, And only for the use of a dialog feature, they import the bootstrap, A bunch of people protest. Summernote Let me start with a rich text that I definitely would not recommend.It is inconsistent with many recognized default behaviors between others. Let me analyze some of the other rich texts on the market: Tinymce also supports on-demand loading, you can customize plugins through its official build page. The last point is that the documentation is very good, basically you want to get the configuration item, it has. I use tinymce to write several plug-ins, learning costs and ease of study are good, and very easy to expand. Extensibility is also critical for rich text. It also has a value-added feature is powerpaste, it is extremely powerful, support for copying everything from word or any other place. Before using a Korean text rich summernote, It wasted me a lot of time, very unfriendly. One of the keys to using rich text is to copy formatting. Here is a brief introduction to the reasons why tinymce is recommended: tinymce is a veteran to do rich text company(Here also recommended ckeditor, is also a company that has been doing rich text, the new version is very good), its products have stood the test of the market, and it has detailed documentation and rich configuration. The common rich text editors in the market are basically used, and the finally chose Tinymce. In the process of selecting rich texts, I also walked a lot of detours. Different ways to pass props to components in React.Rich text editor is a core part of management system, but at the same time is a place with lots of problems.Call function in parent component from child component in React.js | Example.Call parent component function from child component local function in React.js | Example.How to update a part of an object in React.js using useState hook | Example.Best Vue.js UI libraries in 2023 – A comprehensive analysis.How to render components dynamically in Vue 3 Composition API | Example. Show the position of an element in Vue 3 Composition API | Example.Check if element contains a class name in Vue 3 Composition API | Example.Send email with Sendgrid in Vue.js / Nuxt.js Optimize Google Maps Polygon Using Ramer Douglas Peucker Algorithm | Vue.jsīuild an iOS / iPhone home screen clone in Vue.jsīuild a WhatsApp chat clone (interface) using Vue.jsĪrchitect / structure a large scale Vue.js application | Example If did everything right, here’s how it should look like: clearData() clears all the data, including the editor as well as saved data. saveData() renders the parsed data (HTML) on the browser, I’ve done so on line 14. Then I’ve created two methods saveData() and clearData() on lines 37 and 40 respectively. On line 30, you can set some editor configurations, I’ve kept it blank. On line 22, I’ve imported ClassicEditor and used it as the editor initiator on line 28. Moving on to the component where you’d need to actually use the editor: Save Clear Parsed data: Code language: HTML, XML ( xml ) You’d notice that I’ve registered Vue to use CKEditor on line number 6. Next up, open your main.js or app.js (whichever file boots your app) and make the modifications as follows: import Vue from "vue" Note: If you get any errors like “duplicate modules found”, install the libraries one by one. Here in this guide, I’m going to show you how to get it running in your Vue.js application.įire up your terminal and run the following commands to install the required libraries: npm install -save Code language: CSS ( css ) Although using the editor is tad simple, having to implement it for the first time could be a bit tricky. The library has had multiple versions and iterations over the span of past years. One of the most popular text editor of all times is the CKEditor. Luckily, Vue.js has plenty of options available if you’re looking for one. If is not sufficient for you and you’re looking for something better, you need a rich text editor.
0 Comments
Leave a Reply. |