Replies: 1 comment
-
|
@Vodhin tiny in use is to be seen as an 'community' development (afaik). The changes you suggest require a commercial version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How do you add options for font size without editing the tinymce4/e107/plugin.js file? Specifically I want to activate "blocks", "fontfamily", and "fontsize" to the editor but I have not seen any way to add those to the $form->bbarea() function in form_handler.php.
There are more options available according to https://www.tiny.cloud/blog/custom-font-sizes-in-tinymce:
toolbar: "undo redo spellcheckdialog | blocks fontfamily fontsize | bold italic underline forecolor backcolor | link image | align lineheight checklist bullist numlist | indent outdent | removeformat typography"fontsize_formats: "8pt 9pt 10pt 11pt 12pt 14pt 18pt 24pt 30pt 36pt 48pt 60pt 72pt 96pt"I also want to hook into the form field with Ajax: I have a lot of elements that are all over the page (and in different tabs) that need this editor and I would like to send the data into a single WYSIWYG editor and save it via Ajax without losing my place on the page with a reload. I would normally do this by using JavaScript to build a form on the fly and post data via Ajax. I've tried using Ajax to add a new WYSIWYG editor with an HTML callback but it does not load tinyMCE. I have had some success using JavaScript to load an iframe with the WYSIWYG page, but that becomes ridiculous because the result is an iframe inside an iframe, which triggers a warning about unsaved changes (when there aren't any) if you reload the main page or click to go somewhere else.
I do have hope in attempting to hook into the JavaScript object "top.tinymce" for some data manipulation...
Beta Was this translation helpful? Give feedback.
All reactions