Skip to content

Commit

Permalink
Editor OU sup/sub: Update to work with Moodle 4.2+ #795902
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvu authored and timhunt committed Jul 15, 2024
1 parent 98da73d commit 8da865d
Show file tree
Hide file tree
Showing 16 changed files with 21,531 additions and 10,976 deletions.
2 changes: 1 addition & 1 deletion buildstandalone.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ousupsub_texteditor_standalone_builder {
'stylecss' => 'styles.css',
'readme' => 'readme.txt',
'readmestandalone' => 'standalone-src/readme.txt',
'yuiversion' => '3.17.2',
'yuiversion' => '3.18.1',
'wwwroot' => '../../..'
);
private static $yuisuffix = '-min';
Expand Down
3 changes: 3 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change log for the superscript-subscript editor

## Change in 1.3
* Updated rangy lib to work with Moodle 4.2+.

## Changes in 1.2

* Updated to work with Moodle 4.0.
Expand Down
450 changes: 80 additions & 370 deletions standalone/ousupsub/ousupsub.js

Large diffs are not rendered by default.

16 changes: 6 additions & 10 deletions standalone/ousupsub/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ body {
}
.editor_ousupsub {
display: inline-block;
vertical-align: -14px;
}
body.safari .editor_ousupsub {
vertical-align: 0;
}
body.ie .editor_ousupsub {
vertical-align: 26px;
vertical-align: bottom;
}
/* Moodle does not add an 'edge' classname to body yet, and when they do
(MDL-50807) the class name used may not be 'edge', but in any case, this is
Expand All @@ -23,6 +17,10 @@ body.edge .editor_ousupsub {
vertical-align: 25px;
}

.editor_ousupsub_content {
outline: none; /* Remove outer border of Chrome. */
}

.editor_ousupsub_content_wrap {
border: 1px solid #bbb;
border-top: none;
Expand All @@ -31,16 +29,14 @@ body.edge .editor_ousupsub {
white-space: nowrap;
overflow-x: auto;
}
.editor_ousupsub_content {
padding: 2px;
}

div.editor_ousupsub_toolbar {
display: block;
background: #f2f2f2;
border: 1px solid #bbb;
height: 25px;
line-height: 0;
box-sizing: content-box;
}

div.editor_ousupsub_toolbar div.ousupsub_group {
Expand Down
2 changes: 1 addition & 1 deletion thirdpartylibs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<location>yui/src/rangy/js/*.*</location>
<name>Rangy</name>
<license>MIT</license>
<version>1.2.3</version>
<version>1.3.1</version>
<licenseversion></licenseversion>
</library>
</libraries>
Loading

0 comments on commit 8da865d

Please sign in to comment.