[wp-testers] CSS in WYSIWYG
Ryan Scheuermann
ryan at concept64.com
Sun Dec 11 14:53:59 GMT 2005
I'm not sure if this is a worthwhile solution to explore right now, but
roughly based on the iimage browser/gallery, I've developed an upload
plugin that uses "templates". I'll try to correlate it to the new
uploading feature:
In this scenario, to accommodate CSS classes and even more complex HTML
and/or Textile/Markdown when adding uploads to the post, the admin on
another options page would define the "templates" for adding the files.
The templates taking the form of something like this:
Thumb: <a href="%linktoimage"><img src="%thumbimage" class="thumb"/></a>
Alt Thumb: <a href="%linktoimage"><img src="%thumbimage"
class="altthumb"/></a>
Image Only: <img src="%fullimage" class="fullimage"/>
In theory, the admin would be able to add as many "templates" as he
liked and those would be available when clicking through the "Options"
(on the inline upload form) for the file. Do you follow? Or do I need
more explanation?
Of course, there are issues with RTE/non-RTE. And I'm not saying to
include this in the WP core (as I don't believe adding CSS classes for
"alignleft", "alignright" belong in the core), but it might be a
worthwhile plugin solution and something to explore.
Ryan Scheuermann
Andy Staines wrote:
> Thanks Andy - I've bookmarked it now :)
>
> At first sight and first play this build looks much better. I like the
> new option on the images to paste the code in instead of drag and
> drop. Also looks like this resolves the Firefox problem of inserting
> the image to the left of text.
>
> I'm still hung up on this class thingy though. If we could find a
> simple way to get your chosen display class in there then I;m pretty
> sure you'd make 100% of the people happy!
>
> Andy
>
>
> On 05:04 AM | Sun 11 Dec 05, at 05:04 AM | 11 Dec 05, Andy Skelton
> wrote:
>
>> On 12/10/05, Andy Staines <andy at yellowswordfish.com> wrote:
>>> Apologies for the next question but can you point me to a build with
>>> these changes in so that I can re-build my local system? I can't find
>>> the details anywhere any more!
>>
>> If you can use Subversion, the repository is at
>> http://svn.automattic.com/wordpress/trunk
>>
>> Otherwise, http://wordpress.org/download/nightly-builds
>>
>> Andy
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
>
>
--
ryan at concept64.com
www.concept64.com
610.349.0703
More information about the wp-testers
mailing list