-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose TinyMCE editor content manipulation APIs in Gutenberg #3688
Comments
Hi @AngeIII, Thanks for the report. Can you document what does and doesn't currently work? |
@danielbachhuber Hello, I already wrote in ticket start:
also, there was some twinks and abilities to show source/html mode API. |
Related #6648 |
@iseulde, what's your opinion on this one? I don't think we want to expose internal TinyMCE API for every |
Maybe not every API? Why not expose common TinyMCE API points like |
And if we don't want to expose these directly, their equivalents would be just as helpful. |
I feel that some of the important TinyMCE API points (like We've experienced a bug when using custom formatters, where the value of the I would like to believe that had we had the Furthermore, having the |
The shape of the content of RichText is being revised in #7890. That PR will hopefully partly address the issues mentioned here.
Could you elaborate on what you need those for? In what way are you trying to extend the editor. Maybe with that knowledge we can provide more suitable APIs. |
This may be completed after #7890, milestoning to make sure it is |
#3688 (comment) would need a reply in order to know what is needed. |
We have just landed Format API with #10068. It allows registering any format you need. We are still working on a way to give better control which control can be displayed for a given block and documentation. It should be all ready early next week. |
Please make sure that there is same api for setContent, getContent and getting the editor wrapper as in current version of tinymce.
Many compatibility issues can be solved if there will be same api for settings the content.
wp.tinymce.get('content').setContent('something').
The text was updated successfully, but these errors were encountered: