Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

ckeditor bricolage integration

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


zdravko.balorda at siix

Jan 5, 2011, 11:22 PM

Post #1 of 11 (2036 views)
Permalink
ckeditor bricolage integration

Let me change the subject of this thread finally.

>
> Both should be reflected, actually.

Yes, both. The issue here is how to avoid duplicating perl code; once in ckeditor.html
and than again in container.html.
Much like the editor itself is handled.
First suggestion would be:
- adding a new file comp/widgets/wysiwyg/ckeditor.mc that returns the java arrays;
which is called from either via mason component call.

If you have some preferred approach (subroutine perhaps?), give me a hint.
Regards, Zdravko


david at kineticode

Jan 6, 2011, 10:43 AM

Post #2 of 11 (1971 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

On Jan 5, 2011, at 11:22 PM, Zdravko Balorda wrote:

> Let me change the subject of this thread finally.
>
>> Both should be reflected, actually.
>
> Yes, both. The issue here is how to avoid duplicating perl code; once in ckeditor.html
> and than again in container.html.
> Much like the editor itself is handled.
> First suggestion would be:
> - adding a new file comp/widgets/wysiwyg/ckeditor.mc that returns the java arrays;
> which is called from either via mason component call.

I assume you mean "javascript." And that sounds fine, though please don't call it ckeditor.html if other WYSIWYG editors will end up using it.

> If you have some preferred approach (subroutine perhaps?), give me a hint.

You're a lot closer to this than I am. Go for it.

Best,

David


zdravko.balorda at siix

Jan 9, 2011, 11:53 PM

Post #3 of 11 (1955 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

Hi,
one last remaining issue:
For this bricolage-wysiwyg interface the related media/stories needs to
be mapped to concerned html tags: <img>, <a> and <object>.
Relevant to <img> tag are all related media of mime type image/*
Relevant to <a> tag are all non-image related media plus related stories
Relevant to <object> are related media of mime type audio/*, video/*,
and application/x-shockwave-flash

This way, the editor plugins for image, link and object will access relevant
documents only.

Any complaints to this list are wellcome. :)

Regards, Zdravko


Ross.Olson at Planar

Jan 10, 2011, 8:30 AM

Post #4 of 11 (1951 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

Sorry for top-post:

Flash has a number of different MIME types historically, though I'm not sure how this impacts your code.

Are you planning on support for HTML5 tags of Video and Audio?

...Ross...

--
-- I'm sorry if this e-mail is very short or seems terse. It is coming from my cell phone.

On Jan 9, 2011, at 11:54 PM, "Zdravko Balorda" <zdravko.balorda [at] siix> wrote:

> For this bricolage-wysiwyg interface the related media/stories needs to
> be mapped to concerned html tags: <img>, <a> and <object>.
> Relevant to <img> tag are all related media of mime type image/*
> Relevant to <a> tag are all non-image related media plus related stories Relevant to <object> are related media of mime type audio/*, video/*,
> and application/x-shockwave-flash
>
> This way, the editor plugins for image, link and object will access relevant documents

____________________________________________________________________
This e-mail, and any attachments, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information belonging to Planar Systems, Inc. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, any attachments thereto, and use of the information contained, is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the original and any copy thereof.
______________________________________________________________________


david at kineticode

Jan 10, 2011, 9:40 AM

Post #5 of 11 (1952 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

On Jan 9, 2011, at 11:53 PM, Zdravko Balorda wrote:

>
>
> Hi,
> one last remaining issue:
> For this bricolage-wysiwyg interface the related media/stories needs to
> be mapped to concerned html tags: <img>, <a> and <object>.
> Relevant to <img> tag are all related media of mime type image/*
> Relevant to <a> tag are all non-image related media plus related stories
> Relevant to <object> are related media of mime type audio/*, video/*,
> and application/x-shockwave-flash
>
> This way, the editor plugins for image, link and object will access relevant
> documents only.

I suggest looking at the Bric::Biz::Asset::Business::Media subclass of each object:

<a> = B::B::A::B::M
<img> = B::B::A::B::M::Image
<video> = B::B::A::B::M::Video
<audio> = B::B::A::B::M::Audio
<object> = [probably some awful special-case for flash]

Best,

David


zdravko.balorda at siix

Jan 10, 2011, 11:56 PM

Post #6 of 11 (1943 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

> I suggest looking at the Bric::Biz::Asset::Business::Media subclass of each object:
>
> <a> = B::B::A::B::M
> <img> = B::B::A::B::M::Image
> <video> = B::B::A::B::M::Video
> <audio> = B::B::A::B::M::Audio
> <object> = [probably some awful special-case for flash]

<a> should deliver related_story, too. Right? But perhaps, no images. To make things
simpler.

Regarding the <video>,<audio> I'm not aware that wysiwyg editors support HTML 5, yet?!
The closest thing to insert video,audio is using flash plugin.

Zdravko


david at kineticode

Jan 11, 2011, 9:47 AM

Post #7 of 11 (1954 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

On Jan 10, 2011, at 11:56 PM, Zdravko Balorda wrote:

>>
>> I suggest looking at the Bric::Biz::Asset::Business::Media subclass of each object:
>> <a> = B::B::A::B::M
>> <img> = B::B::A::B::M::Image
>> <video> = B::B::A::B::M::Video
>> <audio> = B::B::A::B::M::Audio
>> <object> = [probably some awful special-case for flash]
>
> <a> should deliver related_story, too. Right?

Yes.

> But perhaps, no images. To make things
> simpler.

Huh?

> Regarding the <video>,<audio> I'm not aware that wysiwyg editors support HTML 5, yet?!
> The closest thing to insert video,audio is using flash plugin.

*BARF*.

I've gone Flash-free:

http://daringfireball.net/2010/11/flash_free_and_cheating_with_google_chrome

Best,

David


zdravko.balorda at siix

Jan 11, 2011, 10:07 PM

Post #8 of 11 (1964 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

>> But perhaps, no images. To make things
>> simpler.
>
> Huh?

Well, a href pointing to an image? I don't see much use of this in
a wysiwyg editor.


> I've gone Flash-free:
>
> http://daringfireball.net/2010/11/flash_free_and_cheating_with_google_chrome

But this cancels out audio and video, too, because editors don't do HTML5?!

Zdravko


david at kineticode

Jan 12, 2011, 10:47 AM

Post #9 of 11 (1939 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

On Jan 11, 2011, at 10:07 PM, Zdravko Balorda wrote:

>
>>> But perhaps, no images. To make things
>>> simpler.
>> Huh?
>
> Well, a href pointing to an image? I don't see much use of this in
> a wysiwyg editor.

Okay, your call. I dub you the wysiwyg expert. I hate them. More even than Debian “stable.”

>> I've gone Flash-free:
>> http://daringfireball.net/2010/11/flash_free_and_cheating_with_google_chrome
>
> But this cancels out audio and video, too, because editors don't do HTML5?!

Yeah, slackers. Yet another reason for my well-directed and, of course, entirely rational hate. ;-P

Best,

David


zdravko.balorda at siix

Jan 12, 2011, 10:12 PM

Post #10 of 11 (1922 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

>> Well, a href pointing to an image? I don't see much use of this in
>> a wysiwyg editor.
>
> Okay, your call. I dub you the wysiwyg expert. I hate them. More even than Debian “stable.”

There is still a text field one can type in any url. :) The interface will provide a
shortcut to linking releated stories while filling in "title" attribute, too.

I almost forget to ask: Could both, media and story have equal UUIDs?

Regards, Zdravko


david at kineticode

Jan 13, 2011, 11:02 AM

Post #11 of 11 (1921 views)
Permalink
Re: ckeditor bricolage integration [In reply to]

On Jan 12, 2011, at 10:12 PM, Zdravko Balorda wrote:

> There is still a text field one can type in any url. :) The interface will provide a
> shortcut to linking releated stories while filling in "title" attribute, too.
>
> I almost forget to ask: Could both, media and story have equal UUIDs?

No.

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.