[pmwiki-users] Can't get WikiStylesApply or maybe even WikStylesCSS to work for html video tag also for div

Peter Kay pkay42 at gmail.com
Wed May 17 17:42:13 CDT 2017


You could always put in another set of markup before WikiStyles are invoked:

(I use ">nl1" because I know it works, not because it's optimal)

Markup('mySimpleMarkup', '>nl1', '/\(:audio/mp4/whatever
(.*?)etc:\)/', '%apply=div max-side=600px%$1"$2"etc %%');

But that doesn't look as easy to play with as what you've got.

Nice to see videos in pmwiki working!

--Peter

On Wed, May 17, 2017 at 5:23 PM, Christopher Cox <ccox at endlessnow.com> wrote:
> Well.. you know I thought we had tried it, but we had so many things being
> tried... anyhow, yes the apply=div works.  So... ugly, but working is:
>
> |%apply=div
> max-width=600px%http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v"Test/Mp4/plex.jpg"
> %%|
>
> |I suppose you all might want to see what I've done:|
>
> |https://endlessnow.com/wiki1/Test/Mp4|
>
> |This recipe hasn't been released (yet, under development).|
>
>
> |
> |
>
> |
> |
>
> |
> |
>
>
>
> On 05/17/2017 03:46 PM, Peter Kay wrote:
>>
>> Have you tried any of the apply=div, etc options?
>> (http://www.pmwiki.org/wiki/PmWiki/WikiStyles)  So %apply=div
>> max-width=200px%, and so on...
>>
>> --Peter
>>
>> On Wed, May 17, 2017 at 4:07 PM, Christopher Cox <ccox at endlessnow.com>
>> wrote:
>>>
>>> I'd like to do CSS style max-width on a div.
>>>
>>> So I have:
>>>
>>> $WikiStyleCSS[] = 'max-width';
>>>
>>> But I can't get that to apply to a div doing %max-width=200px% <div
>>> etc...
>>> %%
>>>
>>> It comes through as a span before the diff.
>>>
>>> But if I do %width=200px% <div etc... %%
>>>
>>> We see that getting set for the div as an html attribute <div
>>> width="200px"... which is maybe what we don't want, want it as a style.
>>> Maybe Wikistyles can't really help us here?
>>>
>>> Also,  we'd like to be able to html attributes on a video tag... so you'd
>>> think that would work.  So we have:
>>>
>>> $WikiStyleApply['vid'] = 'video';
>>>
>>> But again, when we have %width=200px%<video ....
>>>
>>> It comes through as a span.
>>>
>>> We tried this:
>>>
>>> SDV($imgTag, '(?:img|object|embed|video|div)');
>>>
>>> But still comes through as a span.
>>>
>>> So... maybe there isn't a good way to get a Wiki Style to be a CSS style
>>> vs
>>> HTML attribute, but on the latter...  is there anyway to get a Wiki Style
>>> get applied as an HTML attribute for the video tag?
>>>
>>>
>>>
>>> _______________________________________________
>>> pmwiki-users mailing list
>>> pmwiki-users at pmichaud.com
>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list