Comments (6)
I hope this helps you out:
const Editor = TuiEditor.factory({
el: this.el,
height: 'auto',
initialValue: determineValue(this.props),
initialEditType: 'wysiwyg',
events: {
change: this.onChange,
focus: () => onFocus(),
blur: () => onBlur(),
},
})
then for example in your onChange method, youd do this:
const value = Editor.getMarkdown();
or
const value = Editor.getHtml();
from tui.editor.
It just replaces a form-element or div etc. You can save your data like you prefer doing it with other input elements
from tui.editor.
@skerbis @michaelryancaputo Thanks guys. I see we have good contributors π―
@cavo789 in addition, you can check out API Docs constructor options
I'm closing it.
from tui.editor.
Thanks for the very fast answer.
So, to take a real example, on the demo page (https://nhnent.github.io/tui.editor/), I click on the "Features" div, type something and see in the DOM inspector that the change is done in the div with class "te-editor" like :
<div class="te-editor" style="position: relative;">
<div contenteditable="true">
<h1>
<div>
<span class="colour" style="color:rgb(75, 148, 229)">Features MY CHANGES</span>
</div>
</h1>
Should I foresee a .onChange() js function on that DOM elem to retrieve the change ? (how can I very quickly remove the "
Thanks
from tui.editor.
Thank you guys !!! Thank you Michael for your js code π
from tui.editor.
Thank you guys!!
from tui.editor.
Related Issues (20)
- Syntax highlighter does not escape XML-entities when language is unknown or unspecified
- Add URL validation for image upload by URL input HOT 1
- μλν° κ°μ΄λ° μ λ ¬ λ¬Έμ
- Drag & Drop and Paste of Images renders as Base64 without addImageBlobHook in Firefox HOT 1
- Optionally Support rendered inline math using $$.
- Numbered List Issues
- Make base64 encoded images collapsible
- Select in a cell cause error : Uncaught TypeError: Class constructor Selection cannot be invoked without 'new'
- Any fork of this project? HOT 1
- Inserted Image via URL does not show/load on WYSIWYG only editor
- WYSIWYG mode no character escaping
- Support React@18
- enhance the initial table redring
- customHTMLRenderer behavior in Markdown vs WYSIWYG mode
- ν λ΄λΆ ν μ€νΈ μμ μ ν μ, μ 체 μΈμ μ΄μ
- getHTML() Method in Toast-UI/Editor Returns Unexpected Value When Editor is Empty
- Multiline XML opening tag is not escaped
- μλν°μμ μ¬μ§ λλκ·Έ μ€ λλ λ§κΈ°.
- Specific HTML input breaks WYSIWYG usability
- Does Toast-UI Editor supports dark theme? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tui.editor.