-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.js
More file actions
29 lines (24 loc) · 710 Bytes
/
plugin.js
File metadata and controls
29 lines (24 loc) · 710 Bytes
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
/**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 2015 SIRAP SAS All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*global tinymce:true */
tinymce.PluginManager.add('normalizefonts', function(editor) {
function pStyles2Span(changeEvt){
if (changeEvt.lastLevel) {
// console.log(changeEvt);
// var content = editor.getBody();
// var allParapgraphs = $(content).find('*').contents().filter(function(){
// return this.nodeType === 3;
// });
// console.log(allParapgraphs);
}
}
// move text formatting style rules from p blocks to inner span elements
editor.on('change',pStyles2Span);
});