Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
martec committed Jul 7, 2017
1 parent 50d7fe9 commit 5921088
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rin/editor/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "Rin Editor for phpBB",
"homepage": "https://github.com/martec/Rin-Editor_for_phpBB",
"version": "0.1.5",
"version": "0.1.6",
"time": "2017-07-07",
"license": "GPL-2.0",
"authors": [
Expand Down
11 changes: 9 additions & 2 deletions rin/editor/styles/all/template/rineditor_plupload.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script type="text/javascript">
phpbb.plupload.updateBbcode = function(action, index) {
var text = CKEDITOR.instances[Object.keys(CKEDITOR.instances)[0]].getData(),
var editor = CKEDITOR.instances[Object.keys(CKEDITOR.instances)[0]],
text = editor.getData(),
removal = (action === 'removal');

// Return if the bbcode isn't used at all.
Expand Down Expand Up @@ -33,6 +34,12 @@
}
}

CKEDITOR.instances[Object.keys(CKEDITOR.instances)[0]].setData(text);
if (editor.mode == 'source') {
editor.setData( '', function() { this.updateElement(); } );
MyBBEditor.insertText(text,'',editor.name+'_2');
}
else {
editor.setData(text);
}
};
</script>

0 comments on commit 5921088

Please sign in to comment.