Open themightychris opened 5 years ago
There are some existing ingredients to borrow from for our first pass on this:
jarvus-ace
package used in the EmergenceContentEditor
app is a good example of loading a generic frontend control into an ext-managed panel. ACE has a rather complicated loading system in the mix too that you don't need to replicate at all, but the use of loadScript
and an afterRender
handler should demonstrate what you need.Some tips for making this easy:
jarvus-ace
repo by just copying all its files, deleting all the extras, and doing a cross-file find-replace on the namejarvus-extjs-simplemde
Panel
classField
class. slate-cbl
has lots of examples of custom fields, and the RichText field build into the framework's source is a good example too of what you need to do here. But it's not super important that we wrap it up as a field right now so punt on this if it gets hairy and just worry about wiring it into the ContentItemNewer potential option: https://github.com/marktext/muya
Derived from https://github.com/marktext/marktext
Options: