Skip to content

Commit d39006a

Browse files
committed
search replace tinymce
1 parent a2ed226 commit d39006a

File tree

9 files changed

+41
-8
lines changed

9 files changed

+41
-8
lines changed

public/themes/basic.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,15 @@ h3 {
15371537
border-width: 0 !important;
15381538
}
15391539

1540+
// 高亮
1541+
.mce-match-marker.mce-match-marker-selected {
1542+
background: yellow;
1543+
}
1544+
// 弹框后的遮罩不要
1545+
#mce-modal-block {
1546+
display: none;
1547+
}
1548+
15401549
#editorContent {
15411550
a {
15421551
color: #2a6496;

public/tinymce/plugins/searchreplace/plugin.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@
277277
type: 'window',
278278
layout: "flex",
279279
pack: "center",
280-
align: "center",
280+
align: "right",
281+
classes: "find-replace-ctn",
281282
onClose: function() {
282283
editor.focus();
283284
self.done();
@@ -362,6 +363,17 @@
362363
]
363364
}
364365
}).renderTo().reflow();
366+
367+
if ($('body').is('.writting')) {
368+
win.moveTo($('body').width()-$('.mce-find-replace-ctn').width(), 40)
369+
} else {
370+
var w = $('body').width() - $('#note').width();
371+
var left = w - $('.mce-find-replace-ctn').width() - 2;
372+
if (left < 0) {
373+
left = 0;
374+
}
375+
win.moveTo(left, 40)
376+
}
365377
}
366378

367379
self.init = function(ed) {

public/tinymce/plugins/searchreplace/plugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/tinymce/plugins/spellchecker/plugin.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@
114114
writeScripts();
115115
})(this);
116116

117-
// $hash: 071cc762958091231ac7b4b6e595d233
117+
// $hash: e08bb47a3826d7a3baf07db3b09b4915

public/tinymce/plugins/table/plugin.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@
115115
writeScripts();
116116
})(this);
117117

118-
// $hash: c26fa9d61be8ccbed156c7c2cfccf5f4
118+
// $hash: 7eb5f7f7021f797b4e5b52d0033a2d1b

public/tinymce/tinymce.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@
220220
writeScripts();
221221
})(this);
222222

223-
// $hash: 4acaf8215fd0f7fb67ae082bd4d86098
223+
// $hash: 22c5702fe3523532d768d96e707c6401

public/tinymce/tinymce.full.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42153,7 +42153,8 @@ expose(["tinymce/pasteplugin/Utils","tinymce/pasteplugin/WordFilter"]);
4215342153
type: 'window',
4215442154
layout: "flex",
4215542155
pack: "center",
42156-
align: "center",
42156+
align: "right",
42157+
classes: "find-replace-ctn",
4215742158
onClose: function() {
4215842159
editor.focus();
4215942160
self.done();
@@ -42238,6 +42239,17 @@ expose(["tinymce/pasteplugin/Utils","tinymce/pasteplugin/WordFilter"]);
4223842239
]
4223942240
}
4224042241
}).renderTo().reflow();
42242+
42243+
if ($('body').is('.writting')) {
42244+
win.moveTo($('body').width()-$('.mce-find-replace-ctn').width(), 40)
42245+
} else {
42246+
var w = $('body').width() - $('#note').width();
42247+
var left = w - $('.mce-find-replace-ctn').width() - 2;
42248+
if (left < 0) {
42249+
left = 0;
42250+
}
42251+
win.moveTo(left, 40)
42252+
}
4224142253
}
4224242254

4224342255
self.init = function(ed) {

public/tinymce/tinymce.full.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/tinymce/tinymce.jquery.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@
220220
writeScripts();
221221
})(this);
222222

223-
// $hash: 23a2a36eca6bd99e13e6a8ba1a4bee73
223+
// $hash: 8ed9c61cf2444b2803089e5ffeef8377

0 commit comments

Comments
 (0)