• Resolved DevynCJohnson

    (@devyncjohnson)


    I love your plugin; thanks for making it. I have some ideas and suggestions to share with you as a thank-you for your work.

    1. Add an option to add MathML, SVG, and other markup-tags to the “extended_valid_elements”. I wrote the below code that I use in a “mu-plugin” I made.

    function mce4_options($opt){
    $opt['extended_valid_elements'] = 'math[class|id|xmlns|altimg|alttext|display|overflow],semantics[encoding|definitionURL],annotation[encoding|definitionURL|cd|name|src],annotation-xml[cd|name|encoding|definitionURL|src],merror,mtext,mspace,mover[accent|align],munder,munderover,mstack,mrow[dir],msrow,mfenced[open|close|separators],menclose[notation],mphantom,msup,msub,msubsup,mmultiscripts,mi,mn,mo[fence],ms,mtable,mtr,mtd,mlabeledtr,mfrac[linethickness|bevelled|numalign|denomalign],mfraction,msline,msqrt,mroot,mscarries,mscarry,oma,oms,omi,omv';
    return $opt;
    }

    2. Add option to set the schema, such as – “$opt[‘schema’] = ‘html5-strict’;”

    3. Add an option to make the editor stop replacing “code” tags with back-ticks.

    4. Add an option to make the editor stop putting br-tags in MathML’s “math” tag and MathML’s other tags.

    5. Add a variety of other options, such as disabling drag-and-drop-upload ($opt[‘drag_drop_upload’] = false;), specifically setting allowed font-sizes, disabling the statusbar, and more.

    As for my questions –

    1. If I made a TinyMCE plugin/button/tool, how could I submit it to you for possible inclusion with “TinyMCE Advanced”?

    2. How can I submit code additions/changes for “TinyMCE Advanced” like developers do on GitHub?

    https://www.ads-software.com/plugins/tinymce-advanced/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    Thanks for the great questions and suggestions ??

    1. This would be best included in the TinyMCE schema even if not enabled by default. Will ask upstream if they would do that.

    2. This is quite advanced option. It may remove tags/formatting when editing posts if enabled on an existing site. Best to use something like https://www.ads-software.com/plugins/advanced-tinymce-configuration/ for it.

    3. This must be coming from another MCE plugin. By default MCE doesn’t do anything with backticks.

    4. This is caused by wpautop(). Can probably be done with plugin using filters but best to be updated in WordPress. Will also need kses update.

    5. Yeah, some of these may be good to add. I’ve been avoiding adding too many options and making this plugin look like a huge list of checkboxes…

    Long time ago there was a way to add editor buttons from other WP plugins that makes them configurable by the users. However that was causing more harm than good: many users would remove the other plugin’s buttons and them complain that the plugin is broken. So had to remove the ability to configure third-party buttons ??

    That’s a good question. I don’t use github much. Will probably have to set a mirror there and start converting pull requests into svn patches…

    The best way for now is probably to make new ticket and add a patch at the plugins repo: https://plugins.trac.www.ads-software.com/newticket then ping me on Slack (azaozz), or through https://www.laptoptips.ca/contact/

    Thread Starter DevynCJohnson

    (@devyncjohnson)

    Thanks for taking the time to consider my ideas and answer my questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Questions and Suggestions’ is closed to new replies.