Atto text editor plugin is messed up.

Atto text editor plugin is messed up.

Paul An - මගින්
Number of replies: 3

I updated from moodle 2.3 to 3.9 (because of change in php version by my host) and the atto edior plugin is giving me a trouble. For example, I see the following in the HTML generated by atto:

<p dir="ltr" style="text-align: left;"> 

<h5 style="text-align: left;">

All those attributes were not generated in the older version. 

Then there are a lot of <span style="font-size: 0.9375rem;">  and <span style=""> tags being added to the document. 

Is there a way to tell atto to stop doing this nonsense?

Seriously, who makes changes to stuff that is working fine!

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: Useful (2)
In reply to Paul An

Re: Atto text editor plugin is messed up.

Helen Foster - මගින්
Core developers ගේ පින්තුරය Documentation writers ගේ පින්තුරය Moodle HQ ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Plugin developers ගේ පින්තුරය Testers ගේ පින්තුරය Translators ගේ පින්තුරය

Hi Paul,

For the reasons why dir="ltr" style="text-align: left;" was added, please see MDL-45227.

As for the span style="font-size: 0.9375rem;" it seems the problem has existed for a while - see MDL-67360. Please vote if you'd like it to be fixed.

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: Useful (1)
In reply to Helen Foster

Re: Atto text editor plugin is messed up.

Alan Kmiecik - මගින්
I've worked with many HTML editors on many different systems and gotta say, the Atto editor in Moodle is terrible.

Could not pick up the reasons for doing it in MDL-45227 but, is there anything out there to shut it off? It's killing me having to edit out all the extraneous code atto is putting in.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Alan Kmiecik

Re: Atto text editor plugin is messed up.

John Provasnik - මගින්
Particularly helpful Moodlers ගේ පින්තුරය Testers ගේ පින්තුරය
Changing from Atto to TinyMCE might be something to consider if it's one of your plugins. There are also some others: https://moodle.org/plugins/browse.php?list=category&id=23
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: Useful (2)