Add a way to extends Convertor
See original GitHub issueWith the new customConvertor parameter, enabling usage of… a custom convertor, how to easily “extends” default one ?
I think it will be nice to be able to import Convertor, so we could write something like
import { Convertor } from 'tui-editor'
class MyConvertor extends Convertor {
toHTML(string) {
let toHTML = super.toHTML(string)
/* Do custom stuff */
return toHTML
}
}
Is it possible, or is there already any way to do something like that ?
Version
1.4.6
Test Environment
Does not apply
Current Behavior
Does not apply
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top Results From Across the Web
c# - Extending System.Convert
No, you can't add them to the Convert class - I would suggest adding conversion methods to your actual types, such as: MyCustomType....
Read more >Extending System.Convert Class - MSDN - Microsoft
Hi,. I try to extend the System.Convert classe to add for exemple a methode to convert Image objet to byte[] (wich is pretty...
Read more >Extending the sample by writing your own binding converter
In the Java perspective, select the Java project that contains the converter. · Right-click Properties. · Select Java Build Path > Libraries >...
Read more >Guide to Spring Type Conversions
In this tutorial, we've seen how to use and extend Spring's type conversion system with various examples. As always, the full source code...
Read more >org.directwebremoting.extend.Converter java code examples
How to use. Converter ... Best Java code snippets using org.directwebremoting.extend.Converter ... STARTUP.debug("- adding converter: " + converter.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I also need. I want to use default Convertor and convert markdown before converted to HTML.
When I convert html of around code in previewBeforeHook, the code highlight is not enabled there. So I need to convert markdown before converted.
Or I want
convertBeforeHookNo, we may want to convert when body changed immediately. So handler is needed.