Problems with the TinyMCE plugin docs
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, php
- Área
- documentation
Línea de trabajo
Revisa la página del plugin TinyMCE en moodledev.io/docs/4.2/apis/plugintypes/tiny, incluidas sus secciones plugin-options y key-files, y después inspecciona el diseño tiny_example y los comentarios de lib/editor/tiny/classes/plugin.php. Reestructura las indicaciones para que los ejemplos se puedan buscar, explica el paso de opciones y las comprobaciones de capabilities, aclara la elección entre botón y elemento de menú, y mejora los comentarios PHPdoc; se considerará terminado cuando se hayan abordado las siete cuestiones señaladas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What is the URL of the page?
https://moodledev.io/docs/4.2/apis/plugintypes/tiny
What is the issue with this page?
Some issues observed while trying (and failing) to make a TinyMCE plugin during the GlobalMoot DevJam.
-
All the useful examples are hidden incollapsbile reasons, so you have to click to see them, and Find-in-page does not work.
-
https://moodledev.io/docs/4.2/apis/plugintypes/tiny#plugin-options---optionsjs-and-plugininfophp spends huge amounts of text explaining how to to pass one string value from PHP to JS - is it really that complicated? Anyway, there is no information about why you might want to do this, when it is appropriate.
-
No-where explains where is the right place to put in a capability check for a feature that should only be available to some users.
-
The page says how to add a button, and how to add a menu item. However, there is no discussion of how to choose which of those you should use.
-
https://moodledev.io/docs/4.2/apis/plugintypes/tiny#key-files - well it starte with common.js, which is hardly key, just a recommended refactoring. Why not, in The directory layout for the
tiny_exampleplugin, and a one-line comment for what each file is. -
I am not sure a tutorial on plguinskel is the thing to put first. It just gets in the way until you know things like whether you want a button or a menu item. I would put that at the end, with a forward-reference.
-
While we are at it, the PHPdoc comments in the code are not great. E.g. the comments on lib/editor/tiny/classes/plugin.php are like a parody of what https://moodledev.io/general/development/abc/comments says you should not to.
Are you able to provide a patch for this?
No (Default)
- Lenguaje dominante
- TypeScript
- Estrellas
- 74
- Forks
- 652
- Merge medio
- 2 d 50 min
- PR fusionados (30 d)
- 12
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de moodle/devdocs
-
bug documentation help wanted needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
documentation enhancement help wanted needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
bug documentation help wanted needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
-
bug documentation good first issue needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
bug documentation help wanted needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Todos los issues de moodle/devdocs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
mksglu/context-mode#1200 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/claude-code#96687 ·
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
AOSSIE-Org/DebateAI#582 · 2 comentarios ·