Skip to content

Commit

Permalink
editor plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Feb 2, 2016
1 parent e9ad4e4 commit 2d94d92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/3rd/tinymce/plugins/placeholder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ define(function (require, exports, module) {
PluginManager.add('placeholder', function (editor) {
var settings = editor.settings;

//editor.on('init');
editor.on('loadcontent', function () {
debugger;
});
});
});
1 change: 1 addition & 0 deletions src/3rd/tinymce/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ define(function (require) {
require('../plugins/paste-drop-upload-image/index.js');
require('../plugins/autoresize/index.js');
require('../plugins/wordcount/index.js');
require('../plugins/placeholder/index.js');

/**
* theme.js
Expand Down
3 changes: 2 additions & 1 deletion src/ui/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ define(function (require, exports, module) {
// 内容样式
contentStyle: require('./content-style.css', 'css'),
height: 300,
maxHeight: 800
maxHeight: 800,
placeholder: '点击开始输入'
};
var Editor = ui.create({
constructor: function (textareaEl, options) {
Expand Down

0 comments on commit 2d94d92

Please sign in to comment.