4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
14 Roo.onReady(function(){
20 * ================ Form 2 =======================
22 mform = new Roo.form.Form({
30 bodyCls : 'undoreset undoreset mo-pr-body-content',
32 '../../css/undoreset.css',
33 '/web.MediaOutreach/Pman/PressRelease/templates/images/css/editor.css'
39 xtype : 'ToolbarStandard',
40 xns : Roo.form.HtmlEditor,
45 cls : 'x-init-enable',
47 click : function (_self, e)
50 var rr = new Roo.htmleditor.BlockTable({
54 editor.editorcore.insertAtCursor(rr.toHTML());
64 text : "Add Image (BIG)",
65 cls : 'x-init-enable',
67 click : function (_self, e)
70 var rr = new Roo.htmleditor.BlockFigure({
71 image_src: 'https://picsum.photos/1000/500',
80 editor.editorcore.insertAtCursor(rr.toHTML());
90 text : "Add Image (SMALL)",
91 cls : 'x-init-enable',
93 click : function (_self, e)
96 var rr = new Roo.htmleditor.BlockFigure({
97 image_src: 'https://picsum.photos/400/300',
106 editor.editorcore.insertAtCursor(rr.toHTML());
116 text : "Add Youtube",
117 cls : 'x-init-enable',
119 click : function (_self, e)
122 var rr = new Roo.htmleditor.BlockFigure({
123 image_src: 'https://picsum.photos/500/400',
128 video_url : 'https://www.youtube.com/embed/Gbr-UrxxeoA',
129 href : 'https://youtu.be/Gbr-UrxxeoA',
134 editor.editorcore.insertAtCursor(rr.toHTML());
146 xtype : 'ToolbarContext',
147 xns : Roo.form.HtmlEditor,
149 '*' : [ 'headline' ] ,
150 'TD' : [ 'underline', 'double-underline' ]
158 fieldLabel:'Biography',
161 resizable: 's' /// where the handles should got..
179 mform.render('form-ct5');
180 editor = mform.findField('bio');