İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6982 Görünümler

How can I achieve The requirement to achieve the link previews the way it is in facebook timeline in messaging in Openerp-7 I have Changed the editor to show the video link:

instance.mail.ThreadComposeMessage.include({
        template: 'mail.thread.message.aims',
        start: function() {
            this._super.apply(this, arguments);
        },
        reinit: function() {
            var self= this;
            this._super.apply(this, arguments);
            this.$textarea = this.$el.find('textarea');
            var width = '100%';
            var height = 250;
            this._updating_editor = false;
            if (this.$textarea.length) {
                this.$textarea.cleditor({
                    width:      width, // width not including margins, borders or padding
                    height:     height, // height not including margins, borders or padding
                    controls:   // controls to add to the toolbar
                                "bold italic underline strikethrough " +
                                "| removeformat | bullets numbering | outdent " +
                                "indent | link unlink | source",
                    bodyStyle:  // style to assign to document body contained within the editor
                                "margin:4px; color:#4c4c4c; font-size:13px; font-family:'Lucida Grande',Helvetica,Verdana,Arial,sans-serif; cursor:text"
                });
                this.$cleditor = this.$textarea.cleditor()[0];
                this.$cleditor.change(function() {
                    if (! self._updating_editor) {
                        self.$cleditor.updateTextArea();
                    }
                });
            }
        },

Using the "Show Source" option I can show the video on the Document created, but It is not coming to the Below Chatter It is only Showing the Text. But I want it to show me the preview before it post to the below chatter Like it is in facebook image description

Avatar
Vazgeç
Üretici En İyi Yanıt

Well, More than 40 views and No answer ..... I request Openerp to invest some time and please provide a good documentation for the web modules so that people can contribute more to Openerp.Its very sad to see no one knows any approach to finish the requirements.It will take a years to reach to the level like other frameworks like Django ... to get rich in documentation and other supports.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 25
1534
1
May 25
986
1
Tem 25
2283
2
May 25
1637
1
Tem 24
3405