Answer the question
In order to leave comments, you need to log in
Post editor not working correctly in wordpress how to fix it?
On the screen screenshot.ru/a21c1a83db7f5d2ce0fbce831192ac18 the standard editor with TinyMCE Advanced but this plugin duplicates almost all the functions of the standard editor. I wanted to be able to choose the font and its size. Why is this not in the standard editor? And often empty spaces are created and it is difficult to remove them, in general, some kind of strange editor, even if compared with word, everything jumps and aligns poorly.
In general, is there a normal plugin to replace the standard post editor, so that at least you can choose the font size and the font itself?
Answer the question
In order to leave comments, you need to log in
Comment to the question:
Here is an example of the first part. But better explain what you want to do.
codepen.io/iiil/pen/wmdKE
removeClass remove. Why are you writing it? You remove the active class with each click, and toggleClass adds this class, as a result, the function always shows the block. You just need to leave toggleClass, which will toggle the class:
jsfiddle.net/fN63P/2
$('a').on('click',function(e){
e.preventDefault();
$(this).next('div').toggleClass('active');
});
This code works great
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question