docs: allowing to add alt attribute to an image in tinymce

This commit is contained in:
Hamid Reza Mohammadi 2022-04-08 15:11:12 +04:30
parent 6f7f13bf38
commit f9e6cc48ea
5 changed files with 10 additions and 5 deletions

View File

@ -181,12 +181,13 @@
selector: 'textarea.editor',
language: 'fa_IR',
menubar: false,
plugins: 'link paste',
plugins: 'link paste image',
toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | link',
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
a11y_advanced_options: true,
setup: function(editor) {
editor.on('tap', function(e) {
if(userNotifiedOnEditInsteadOfComment == false){

View File

@ -29,12 +29,13 @@
selector: 'textarea.editor',
language: 'fa_IR',
menubar: false,
plugins: 'link paste',
plugins: 'link paste image',
toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | link',
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
a11y_advanced_options: true,
});

View File

@ -22,13 +22,14 @@
selector: 'textarea.editor',
language: 'fa_IR',
menubar: false,
plugins: 'link paste',
plugins: 'link paste image',
toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | link',
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
smart_paste: false,
a11y_advanced_options: true
});
</script>
<script>

View File

@ -20,12 +20,13 @@
selector: 'textarea.editor',
language: 'fa_IR',
menubar: false,
plugins: 'link paste',
plugins: 'link paste image',
toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | link',
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
a11y_advanced_options: true
});
</script>
<script src="/lib/diff.js"></script>

View File

@ -76,12 +76,13 @@
selector: 'textarea.editorbnum',
language: 'fa_IR',
menubar: false,
plugins: 'link paste',
plugins: 'link paste image',
toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | link',
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
a11y_advanced_options: true,
setup: function(editor) {
editor.on('tap', function(e) {
if(userNotifiedOnEditInsteadOfComment == false){