Minimal editor
-
In my forum lost minimal editor. Enabling and disabling the appropriate checkbox in the settings does not help. How I can fix it. Thanks in advance.
-
Hello,
have you installed some editor-plugins?
Did you make some changes to your functions.php or other files regarding the forum-plugin?
Can you provide me a screenshot?
No, I did not installed any of the editors and the changes were not made.
http://i80.fastpic.ru/big/2016/0718/fb/0c847d5ed70fc9c4bbddd4ec8cf2c2fb.jpghttp://i80.fastpic.ru/big/2016/0718/06/027295f3f671e57e9c57c8dee722e806.jpg
Have you tried to delete the cache of your browser and reload the editor via CTRL + F5?
If this has no effect, try this:
Replace asgaros-forum/js/script.js:
(function($) { $(document).ready(function() { $('a#add_file_link').click(function() { $('<input type="file" name="forumfile[]" /><br />').insertBefore(this); }); $('.uploaded-file a.delete').click(function() { var filename= $(this).attr('filename'); $('.files-to-delete').append('<input type="hidden" name="deletefile[]" value="'+filename+'" />'); $(this).parent().remove(); }); // Disable submit-button after first submit jQuery.fn.preventDoubleSubmission = function() { $(this).on('submit', function(e) { var $form = $(this); if ($form.data('submitted') === true) { e.preventDefault(); } else { $form.data('submitted', true); } }); return this; }; $('#forum-editor-form').preventDoubleSubmission(); }); })(jQuery);With this:
(function($) { $(document).ready(function() { $('a#add_file_link').click(function() { $('<input type="file" name="forumfile[]" /><br />').insertBefore(this); }); $('.uploaded-file a.delete').click(function() { var filename= $(this).attr('filename'); $('.files-to-delete').append('<input type="hidden" name="deletefile[]" value="'+filename+'" />'); $(this).parent().remove(); }); }); })(jQuery);Sorry, but I can’t find the file functions.php. Please tell me where it is located.
It doesnt matter. When you dont know where to find the file -> You made no changes to it. 🙂
Anyway: Do you have a link to your forum? Maybe there is also some problem with your HTML or some other kind of JavaScript code so I can have a look at it.
I made changes to the file script.js but nothing has changed.
I don’t know what’s the error, but the forum visible only to registered users, despite the fact that I removed all restrictions.
I returned to base 2016-06-15 and all was well. The error was in the database. Thanks for the help!
The topic ‘Minimal editor’ is closed to new replies.