blob: e553c3e5585e00ac951ed60fa59d237c7c2d6e29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* WYMeditor : what you see is What You Mean web-based editor
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
* Dual licensed under the MIT (MIT-license.txt)
* and GPL (GPL-license.txt) licenses.
*
* For further information visit:
* http://www.wymeditor.org/
*
* File Name:
* jquery.wymeditor.embed.js
* Experimental embed plugin
*
* File Authors:
* Jonatan Lundin (jonatan.lundin a-t gmail dotcom)
*/
/*
* ISSUES:
* - The closing object tag seems to be stripped out...
*/
(function() {
if (WYMeditor && WYMeditor.XhtmlValidator['_tags']['param']['attributes']) {
WYMeditor.XhtmlValidator['_tags']["embed"] = {
"attributes":[
"allowscriptaccess",
"allowfullscreen",
"height",
"src",
"type",
"width"
]
};
WYMeditor.XhtmlValidator['_tags']['param']['attributes'] = {
'0':'name',
'1':'type',
'valuetype':/^(data|ref|object)$/,
'2':'valuetype',
'3':'value'
};
var XhtmlSaxListener = WYMeditor.XhtmlSaxListener;
WYMeditor.XhtmlSaxListener = function () {
var listener = XhtmlSaxListener.call(this);
listener.block_tags.push('embed');
return listener;
};
WYMeditor.XhtmlSaxListener.prototype = XhtmlSaxListener.prototype;
}
})();
|