How to specify container element for textSlze/lineHeight enactors?
Justin Obara
obara.justin at gmail.com
Wed Aug 7 11:50:24 UTC 2013
You should just need to change the container for those enactors. Currently they are set to the enhancer's container, which is the body.
https://github.com/jobara/infusion/blob/FLUID-4907/src/components/uiOptions/js/StarterGrades.js#L108
https://github.com/jobara/infusion/blob/FLUID-4907/src/components/uiOptions/js/StarterGrades.js#L136
The "gpii.discoverTool.enactorSet" makes use of the "fluid.uiEnhancer.starterEnactors".
https://github.com/jobara/infusion/blob/FLUID-4907/src/components/uiOptions/js/StarterGrades.js#L136
You can override this with something like the following.
fluid.defaults("my.enactorSet", {
gradeNames: ["gpii.discoveryTool.enactorSet", "autoInit"],
components: {
textSize: {
container: "newContainer" // replace with the container you'd want to use
}
lineSpace: {
container: "newContainer" // replace with the container you'd want to use
}
}
});
Thanks
Justin
On 2013-08-07, at 4:59 AM, Andrey Fedoseev <andrey.fedoseev at zojax.com> wrote:
> Hello,
>
> I'm trying to use the Discovery Tool (https://github.com/fluid-project/prefsEditors) on this page http://staging.oercommons.org/authoring/3159-open-author/view
>
> My goal now is to modify only the actual content (i.e. text contained inside "article#content" element) when "Enlarge" mode is active, and leave other sections of the page (such as navigation on top) untouched.
>
> I see that text is enlarged by applying "font-size" and "line-height" styles to the <body> element. Is it possible to specify an element that should be used instead of <body> for textSize / lineHeight enactors?
>
>
> Thanks
>
> --
> Andrey Fedoseev
>
> _______________________________________________________
> fluid-work mailing list - fluid-work at fluidproject.org
> To unsubscribe, change settings or access archives,
> see http://lists.idrc.ocad.ca/mailman/listinfo/fluid-work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.idrc.ocad.ca/pipermail/fluid-work/attachments/20130807/9e60a618/attachment.htm>
More information about the fluid-work
mailing list