创高项目初始化
This commit is contained in:
14
client/node_modules/quill/formats/font.js
generated
vendored
Normal file
14
client/node_modules/quill/formats/font.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ClassAttributor, Scope, StyleAttributor } from 'parchment';
|
||||
const config = {
|
||||
scope: Scope.INLINE,
|
||||
whitelist: ['serif', 'monospace']
|
||||
};
|
||||
const FontClass = new ClassAttributor('font', 'ql-font', config);
|
||||
class FontStyleAttributor extends StyleAttributor {
|
||||
value(node) {
|
||||
return super.value(node).replace(/["']/g, '');
|
||||
}
|
||||
}
|
||||
const FontStyle = new FontStyleAttributor('font', 'font-family', config);
|
||||
export { FontStyle, FontClass };
|
||||
//# sourceMappingURL=font.js.map
|
||||
Reference in New Issue
Block a user